]> The Tcpdump Group git mirrors - tcpdump/commitdiff
No need to check for -q in the Telnet dissector.
authorGuy Harris <[email protected]>
Sun, 19 Oct 2014 20:07:33 +0000 (13:07 -0700)
committerGuy Harris <[email protected]>
Sun, 19 Oct 2014 20:07:33 +0000 (13:07 -0700)
If -q is used, the TCP dissector won't call subdissectors, so the Telnet
dissector won't even get called.

print-telnet.c

index 7c5a737d33252d8e3f2c59d3a8cabdcfca132bc3..6a2680b413c8140a76e7da4f017fb342194b8898 100644 (file)
@@ -509,11 +509,6 @@ 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) {
                l = telnet_parse(ndo, sp, length, 0);
                if (l < 0)