From ee221f4a74ba1935ca81fd26cb3edccd8f27001d Mon Sep 17 00:00:00 2001 From: kieranm Date: Wed, 31 Dec 2003 14:12:55 +0000 Subject: [PATCH] Fixed bug in dequeueing of FIN from out of order segment queue. Now examines flags of out of order segment instead of received segment. --- src/core/tcp_in.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tcp_in.c b/src/core/tcp_in.c index 1edda937..c55da787 100644 --- a/src/core/tcp_in.c +++ b/src/core/tcp_in.c @@ -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; }