tcp: Don't try to desegment at FIN if we can't desegment the frame

Check pinfo->can_desegment before trying to desegment at FIN.
Fix #18335
This commit is contained in:
John Thacker 2022-09-11 19:35:08 -04:00
parent 834bf08290
commit 9954de392b
1 changed files with 1 additions and 0 deletions

View File

@ -8271,6 +8271,7 @@ dissect_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
* need to explicitly check for that here.
*/
if(tcph->th_have_seglen && tcpd && (tcph->th_flags & TH_FIN)
&& pinfo->can_desegment
&& (tcpd->fwd->flags&TCP_FLOW_REASSEMBLE_UNTIL_FIN) ) {
struct tcp_multisegment_pdu *msp;