X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/13ebe24d3d593d0859d9d301c73a4b6c6bef2749..47b02443f099fc93a7c69041d30bf6f6be552ece:/print-ppp.c diff --git a/print-ppp.c b/print-ppp.c index ba5352bb..ee8239c7 100644 --- a/print-ppp.c +++ b/print-ppp.c @@ -1681,6 +1681,11 @@ ppp_hdlc_if_print(netdissect_options *ndo, return (chdlc_if_print(ndo, h, p)); default: + if (caplen < 4) { + ND_PRINT((ndo, "[|ppp]")); + return (caplen); + } + if (ndo->ndo_eflag) ND_PRINT((ndo, "%02x %02x %d ", p[0], p[1], length)); p += 2;