]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-telnet.c
Add CAP_FCNTL and use cap_fcntls_limit().
[tcpdump] / print-telnet.c
index 6a2680b413c8140a76e7da4f017fb342194b8898..fa59b1fe9531ed794ea411db4129cf1fe34934dd 100644 (file)
@@ -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;