X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/d53a7940aaf35b8cb7f3b89c7a668281912a063f..043784b064d03ab8223f4c02fc0ba5f9dffecabd:/print-telnet.c diff --git a/print-telnet.c b/print-telnet.c index 6a2680b4..fa59b1fe 100644 --- a/print-telnet.c +++ b/print-telnet.c @@ -510,6 +510,10 @@ telnet_print(netdissect_options *ndo, const u_char *sp, u_int length) osp = sp; while (length > 0 && *sp == IAC) { + /* + * Parse the Telnet command without printing it, + * to determine its length. + */ l = telnet_parse(ndo, sp, length, 0); if (l < 0) break;