summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnoop C S <anoopcs@redhat.com>2019-03-15 18:48:40 +0530
committerAndreas Schneider <asn@samba.org>2019-03-21 08:42:52 +0100
commit2cfe0686137c61edd2ff9c6fa01e5499d210c0c5 (patch)
treec24b9a491a6c32bc034661cf5ef2228ae2f1ead9
parent6f69593669b7d8424492da95a58d4d7cffa3c974 (diff)
downloadsocket_wrapper-2cfe0686137c61edd2ff9c6fa01e5499d210c0c5.tar.gz
socket_wrapper-2cfe0686137c61edd2ff9c6fa01e5499d210c0c5.tar.xz
socket_wrapper-2cfe0686137c61edd2ff9c6fa01e5499d210c0c5.zip
swrap: Fix "Value stored never used" warning
Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--src/socket_wrapper.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c
index a5037f7..e59e501 100644
--- a/src/socket_wrapper.c
+++ b/src/socket_wrapper.c
@@ -2539,7 +2539,6 @@ static uint8_t *swrap_pcap_packet_init(struct timeval *tval,
if (wire_len > 64 ) {
icmp_truncate_len = wire_len - 64;
}
- wire_hdr_len += icmp_hdr_len;
wire_len += icmp_hdr_len;
}