From: David van Moolenbroek Date: Tue, 6 Oct 2009 20:32:58 +0000 (+0000) Subject: inet: fix TCP connection corruption bug (causing test40 to fail sometimes) X-Git-Tag: v3.1.5~20 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=045f1cdb10bd0a0f6391b20ee7799f16cc8d44e9;p=minix.git inet: fix TCP connection corruption bug (causing test40 to fail sometimes) --- diff --git a/servers/inet/generic/tcp.c b/servers/inet/generic/tcp.c index 77a3b1901..eb45d6e4d 100644 --- a/servers/inet/generic/tcp.c +++ b/servers/inet/generic/tcp.c @@ -1588,6 +1588,9 @@ tcp_hdr_t *tcp_hdr; * there are empty connections as well. */ listen_conn= new_conn_for_queue(listen_conn->tc_fd); + + if (listen_conn) + return listen_conn; } if (!best_conn && !listen_conn)