X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/6cdbddabf8cbddb872f347353a494b4d62d07e4e..refs/pull/433/head:/print-bootp.c diff --git a/print-bootp.c b/print-bootp.c index 27438fab..fe0a070c 100644 --- a/print-bootp.c +++ b/print-bootp.c @@ -851,7 +851,7 @@ rfc1048_print(netdissect_options *ndo, case TAG_CLIENT_ID: { - int type; + int type; /* this option should be at least 1 byte long */ if (len < 1) { @@ -907,7 +907,8 @@ rfc1048_print(netdissect_options *ndo, case AGENT_SUBOPTION_CIRCUIT_ID: /* fall through */ case AGENT_SUBOPTION_REMOTE_ID: case AGENT_SUBOPTION_SUBSCRIBER_ID: - fn_printn(ndo, bp, suboptlen, NULL); + if (fn_printn(ndo, bp, suboptlen, ndo->ndo_snapend)) + goto trunc; break; default: