X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/cf1d68daaaaeb1b765589b9a5b6fff55edb6221b..5287bffd3f4fa1fda9d7734b45f8cf02391d3855:/print-telnet.c diff --git a/print-telnet.c b/print-telnet.c index a6640346..10fad9fe 100644 --- a/print-telnet.c +++ b/print-telnet.c @@ -442,6 +442,7 @@ telnet_parse(netdissect_options *ndo, const u_char *sp, u_int length, int print) break; p++; } + ND_TCHECK(*p); if (*p != IAC) goto pktend;