]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Fix check against snapshot length.
authorGuy Harris <[email protected]>
Fri, 12 Feb 2016 22:51:44 +0000 (14:51 -0800)
committerGuy Harris <[email protected]>
Fri, 12 Feb 2016 22:51:44 +0000 (14:51 -0800)
print-tcp.c

index cbee3d8d93242230028046e73babeb8237ffc749..1473cb385a6cb69546cad9c035e5d0eea480e623 100644 (file)
@@ -758,7 +758,7 @@ print_tcp_rst_data(netdissect_options *ndo,
                 ND_PRINT((ndo, "+"));                  /* indicate we truncate */
         }
         ND_PRINT((ndo, " "));
-        while (length-- && sp <= ndo->ndo_snapend) {
+        while (length-- && sp < ndo->ndo_snapend) {
                 c = *sp++;
                 safeputchar(ndo, c);
         }