summaryrefslogtreecommitdiff
path: root/source/net_common.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2009-06-11 13:06:31 +0000
committerAndrey Nazarov <skuller@skuller.net>2009-06-11 13:06:31 +0000
commit8f71a51a7058567254f14efc5ed0a7c59b1a2677 (patch)
tree5e84141e2fd167e76e3f793e17988d98183f9e48 /source/net_common.c
parent9d9b671cc77440e9b3bfcd74288f09a720c0ee6b (diff)
Fixed TCP_OpenSocket broken around r345.
Fixed ‘wait’ command processing in the client buffer. Fixed compilation error.
Diffstat (limited to 'source/net_common.c')
-rw-r--r--source/net_common.c2
1 files changed, 2 insertions, 0 deletions
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;