]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ether.c
Merge pull request #760 from leres/master
[tcpdump] / print-ether.c
index 6202a6994a8be287dba8a5b60e28324ba470093d..e1d3b36d1b5d7ed3281c0895d4d15eb4c5aa4015 100644 (file)
@@ -196,7 +196,7 @@ ether_print_common(netdissect_options *ndo, const u_char *p, u_int length,
        length_type = GET_BE_U_2(p);
 
        length -= 2;
-       caplen += 2;
+       caplen -= 2;
        p += 2;
        hdrlen += 2;