Fixed bug in dequeueing of FIN from out of order segment queue.

Now examines flags of out of order segment instead of received segment.
This commit is contained in:
kieranm 2003-12-31 14:12:55 +00:00
parent 0fb33aebf6
commit ee221f4a74

View File

@ -1021,7 +1021,7 @@ tcp_receive(struct tcp_pcb *pcb)
}
cseg->p = NULL;
}
if (flags & TCP_FIN) {
if (TCPH_FLAGS(cseg->tcphdr) & TCP_FIN) {
LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: dequeued FIN.\n"));
recv_flags = TF_GOT_FIN;
}