]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-telnet.c
Add CAP_FCNTL and use cap_fcntls_limit().
[tcpdump] / print-telnet.c
index 7c5a737d33252d8e3f2c59d3a8cabdcfca132bc3..fa59b1fe9531ed794ea411db4129cf1fe34934dd 100644 (file)
@@ -509,12 +509,11 @@ telnet_print(netdissect_options *ndo, const u_char *sp, u_int length)
 
        osp = sp;
 
-       if (ndo->ndo_qflag) {
-               ND_PRINT((ndo, "[telnet]"));
-               return;
-       }
-
        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;