]> Zhao Yanbai Git Server - minix.git/commitdiff
inet: fix TCP connection corruption bug (causing test40 to fail sometimes)
authorDavid van Moolenbroek <david@minix3.org>
Tue, 6 Oct 2009 20:32:58 +0000 (20:32 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Tue, 6 Oct 2009 20:32:58 +0000 (20:32 +0000)
servers/inet/generic/tcp.c

index 77a3b19010e08849c8bd1cea8017399cf31d69c7..eb45d6e4d5820128561da2011c38126b274c62b6 100644 (file)
@@ -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)