]> The Tcpdump Group git mirrors - tcpdump/commitdiff
do not print anything if it is not a valid IAC xx sequence
authoritojun <itojun>
Mon, 25 Jun 2001 23:03:57 +0000 (23:03 +0000)
committeritojun <itojun>
Mon, 25 Jun 2001 23:03:57 +0000 (23:03 +0000)
print-telnet.c

index 65d25fd3d7ce8de040b5fe6208cac8d4524272ea..df5370c89baaca157ee5e73178e1d3055d20535d 100644 (file)
@@ -51,7 +51,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-     "@(#) $Header: /tcpdump/master/tcpdump/print-telnet.c,v 1.14 2001-06-25 22:49:36 itojun Exp $";
+     "@(#) $Header: /tcpdump/master/tcpdump/print-telnet.c,v 1.15 2001-06-25 23:03:57 itojun Exp $";
 #endif
 
 #include <sys/param.h>
@@ -109,10 +109,8 @@ telnet_parse(const u_char *sp, u_int length, int print)
        }
 
        i = c - TELCMD_FIRST;
-       if (i < 0 || i > IAC - TELCMD_FIRST) {
-               (void)printf("unknown: ff%02x\n", c);
+       if (i < 0 || i > IAC - TELCMD_FIRST)
                goto trunc;
-       }
 
        switch (c) {
        case DONT: