summaryrefslogtreecommitdiff
path: root/print-atalk.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-07-03 12:58:11 -0700
committerFrancois-Xavier Le Bail <fx.lebail@yahoo.com>2017-01-18 09:16:36 +0100
commit83a7bda4103699b30270c3bee2b796811e9792e6 (patch)
tree2d48a7e612efee68cfe2a48fd1a9cceec12cfbf6 /print-atalk.c
parent5cace7282089f9de56758c9d8af0b5dd35fa20a1 (diff)
downloadtcpdump-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.c2
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);