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