X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/49b23c5a9b0198bb382dcf43c458d46fcf2fa809..1fb50928ce27360c1c987312774f686b23c69b51:/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;