]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-tcp.c
tests: Fix some tests with invalid microsecond packet timestamps
[tcpdump] / print-tcp.c
index 38f80d9b2336e05087ef5e556d769fc12a15d6be..4314ec22bfbe78aad18489c86f19c92642a900b8 100644 (file)
@@ -729,8 +729,11 @@ tcp_print(netdissect_options *ndo,
                 nd_trunc_longjmp(ndo);
         }
         bp += header_len;
-        if ((flags & TH_RST) && ndo->ndo_vflag) {
-                print_tcp_rst_data(ndo, bp, length);
+        if (flags & TH_RST) {
+                if(ndo->ndo_vflag)
+                        print_tcp_rst_data(ndo, bp, length);
+                else
+                        ND_TCHECK_LEN(bp, length);
                 return;
         }