]> The Tcpdump Group git mirrors - tcpdump/commitdiff
print-ppp: variable 'length' is updated and the new value is never used 373/head
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 7 Mar 2014 09:39:46 +0000 (10:39 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 7 Mar 2014 09:39:46 +0000 (10:39 +0100)
print-ppp.c

index f0598f8f61d74e1914a72ed1c688c2700d5d6fb4..82e0fc47600acbc09e85f7cde7573d0fe45c8364 100644 (file)
@@ -1671,7 +1671,6 @@ ppp_hdlc_if_print(const struct pcap_pkthdr *h, register const u_char *p)
                if (eflag)
                        printf("%02x %02x %d ", p[0], p[1], length);
                p += 2;
-               length -= 2;
                hdrlen += 2;
 
                /*