diff options
Diffstat (limited to 'source/net_common.c')
-rw-r--r-- | source/net_common.c | 2 |
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; |