diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-07-03 12:58:11 -0700 |
---|---|---|
committer | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | 2017-01-18 09:16:36 +0100 |
commit | 83a7bda4103699b30270c3bee2b796811e9792e6 (patch) | |
tree | 2d48a7e612efee68cfe2a48fd1a9cceec12cfbf6 /print-atalk.c | |
parent | 5cace7282089f9de56758c9d8af0b5dd35fa20a1 (diff) | |
download | tcpdump-83a7bda4103699b30270c3bee2b796811e9792e6.tar.gz |
Pass the actual frame length to llap_print().
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.
Diffstat (limited to 'print-atalk.c')
-rw-r--r-- | print-atalk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-atalk.c b/print-atalk.c index a94c29ce..8460a4fd 100644 --- a/print-atalk.c +++ b/print-atalk.c @@ -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); |