TCP: Send RST if applicaiton 'unlistens()' before we complete the connection sequence.
This commit is contained in:
parent
8acfea1197
commit
aa57fb159d
@ -486,10 +486,16 @@ found:
|
||||
|
||||
nerr("Listen canceled while waiting for ACK on port %d\n",
|
||||
tcp->destport);
|
||||
|
||||
/* Free the connection structure */
|
||||
|
||||
conn->crefs = 0;
|
||||
tcp_free(conn);
|
||||
conn = NULL;
|
||||
goto drop;
|
||||
|
||||
/* And send a reset packet to the remote host. */
|
||||
|
||||
goto reset;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NET_TCP_WRITE_BUFFERS
|
||||
|
Loading…
Reference in New Issue
Block a user