From 8f71a51a7058567254f14efc5ed0a7c59b1a2677 Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Thu, 11 Jun 2009 13:06:31 +0000 Subject: Fixed TCP_OpenSocket broken around r345. Fixed ‘wait’ command processing in the client buffer. Fixed compilation error. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/net_common.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/net_common.c') diff --git a/source/net_common.c b/source/net_common.c index 59d7a44..5c9172e 100644 --- a/source/net_common.c +++ b/source/net_common.c @@ -990,6 +990,8 @@ static SOCKET TCP_OpenSocket( const char *iface, int port, netsrc_t who ) { goto fail; } + return s; + fail: closesocket( s ); return INVALID_SOCKET; -- cgit v1.2.3