forked from osmocom/wireshark
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:
parent
834bf08290
commit
9954de392b
|
@ -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.
|
* need to explicitly check for that here.
|
||||||
*/
|
*/
|
||||||
if(tcph->th_have_seglen && tcpd && (tcph->th_flags & TH_FIN)
|
if(tcph->th_have_seglen && tcpd && (tcph->th_flags & TH_FIN)
|
||||||
|
&& pinfo->can_desegment
|
||||||
&& (tcpd->fwd->flags&TCP_FLOW_REASSEMBLE_UNTIL_FIN) ) {
|
&& (tcpd->fwd->flags&TCP_FLOW_REASSEMBLE_UNTIL_FIN) ) {
|
||||||
struct tcp_multisegment_pdu *msp;
|
struct tcp_multisegment_pdu *msp;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue