]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-tcp.c
change 802.1ag pre-standard codepoint to standard codepoint
[tcpdump] / print-tcp.c
index 225b6cc354d6813abc32aea85e6bbc7141f183bf..56cbe57d4e14dd6e75685cf419b74b0e65566332 100644 (file)
@@ -23,7 +23,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-"@(#) $Header: /tcpdump/master/tcpdump/print-tcp.c,v 1.128 2007-01-29 19:19:51 hannes Exp $ (LBL)";
+"@(#) $Header: /tcpdump/master/tcpdump/print-tcp.c,v 1.129 2007-04-03 20:02:56 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -463,7 +463,8 @@ tcp_print(register const u_char *bp, register u_int length,
                 cp = (const u_char *)tp + sizeof(*tp);
                 printf(", options [");
                 while (hlen > 0) {
-                        putchar(ch);
+                        if (ch != '\0')
+                                putchar(ch);
                         TCHECK(*cp);
                         opt = *cp++;
                         if (ZEROLENOPT(opt))