swrap: Fix "Value stored never used" warning
authorAnoop C S <anoopcs@redhat.com>
Fri, 15 Mar 2019 13:18:40 +0000 (18:48 +0530)
committerAndreas Schneider <asn@samba.org>
Thu, 21 Mar 2019 07:42:52 +0000 (08:42 +0100)
Signed-off-by: Anoop C S <anoopcs@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
src/socket_wrapper.c

index a5037f70d5b9766d7ce2daf1180142fc15dd36d6..e59e5017f09e2177c50538768b4ac4f52af21009 100644 (file)
@@ -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;
        }