]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-tcp.c
Revert "Clean a bunch of fuzzed files not to fuzz the container."
[tcpdump] / print-tcp.c
index 0c250a07491d86fa62042a9ef49b480ab3c6b323..d9ca4a34b940c1a2d6058dde91fcedb28e752265 100644 (file)
@@ -708,7 +708,7 @@ tcp_print(netdissect_options *ndo,
          */
         ND_PRINT(", length %u", length);
 
-        if (length <= 0)
+        if (length == 0)
                 return;
 
         /*
@@ -753,8 +753,7 @@ tcp_print(netdissect_options *ndo,
                 smtp_print(ndo, bp, length);
         } else if (IS_SRC_OR_DST_PORT(WHOIS_PORT)) {
                 ND_PRINT(": ");
-                ndo->ndo_protocol = "whois";   /* needed by txtproto_print() */
-                txtproto_print(ndo, bp, length, NULL, 0); /* RFC 3912 */
+                whois_print(ndo, bp, length);
         } else if (IS_SRC_OR_DST_PORT(BGP_PORT))
                 bgp_print(ndo, bp, length);
         else if (IS_SRC_OR_DST_PORT(PPTP_PORT))