From: Guy Harris Date: Fri, 12 Feb 2016 22:51:44 +0000 (-0800) Subject: Fix check against snapshot length. X-Git-Tag: tcpdump-4.8.0~38 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/cdda157a88595c0945f7719f83446e3976d53b89 Fix check against snapshot length. --- diff --git a/print-tcp.c b/print-tcp.c index cbee3d8d..1473cb38 100644 --- a/print-tcp.c +++ b/print-tcp.c @@ -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); }