]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Pass the actual frame length to llap_print().
authorGuy Harris <[email protected]>
Fri, 3 Jul 2015 19:58:11 +0000 (12:58 -0700)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 18 Jan 2017 08:16:36 +0000 (09:16 +0100)
That way, it can properly do the check against that length; it also does
bounds checks, so it'll catch running past the snapshot length.

print-atalk.c

index a94c29ce25fd3f7f573ded68f2644e3dabe76476..8460a4fd1cd8a74edcf7a7e04a7ec3d3e733b050 100644 (file)
@@ -79,7 +79,7 @@ ltalk_if_print(netdissect_options *ndo,
 {
        u_int hdrlen;
 
-       hdrlen = llap_print(ndo, p, h->caplen);
+       hdrlen = llap_print(ndo, p, h->len);
        if (hdrlen == 0) {
                /* Cut short by the snapshot length. */
                return (h->caplen);