diff options
Diffstat (limited to 'print-sl.c')
-rw-r--r-- | print-sl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-sl.c b/print-sl.c index a12a2bd6f35f..d08cd2459579 100644 --- a/print-sl.c +++ b/print-sl.c @@ -62,7 +62,7 @@ sl_if_print(netdissect_options *ndo, register u_int length = h->len; register const struct ip *ip; - if (caplen < SLIP_HDRLEN) { + if (caplen < SLIP_HDRLEN || length < SLIP_HDRLEN) { ND_PRINT((ndo, "%s", tstr)); return (caplen); } |