X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/4630074fc542420cc08efcddc310d43d9e1b34f4..4c683712d4b483b43f16d41d09ec6232cbc917ca:/print-tcp.c?ds=sidebyside diff --git a/print-tcp.c b/print-tcp.c index 5680d432..aa756021 100644 --- a/print-tcp.c +++ b/print-tcp.c @@ -720,8 +720,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; }