Avoid leak in TCP segment reassembly code

This commit is contained in:
William Robinet 2021-01-27 18:42:07 +01:00
parent 64effa3bb9
commit 9d3974b85f

View file

@ -365,7 +365,8 @@ static int process_data_segment(conn,handler,p,stream,direction)
else else
conn->state=TCP_STATE_CLOSED; conn->state=TCP_STATE_CLOSED;
} }
free_tcp_segment_queue(stream->oo_queue);
stream->oo_queue=seg->next; stream->oo_queue=seg->next;
seg->next=0; seg->next=0;
stream->seq=seg->s_seq + seg->len; stream->seq=seg->s_seq + seg->len;