From c16338cfa93c8fb8d38879ea0601750064a8f63d Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 18 Jun 2012 16:03:06 +0000 Subject: [PATCH] fix wrong socket ID comparison, from /dev/humancontroller --- code/qcommon/net_ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/qcommon/net_ip.c b/code/qcommon/net_ip.c index dc9f290e..123b8557 100644 --- a/code/qcommon/net_ip.c +++ b/code/qcommon/net_ip.c @@ -1533,7 +1533,7 @@ void NET_Config( qboolean enableNetworking ) { ip_socket = INVALID_SOCKET; } - if(multicast6_socket) + if(multicast6_socket != INVALID_SOCKET) { if(multicast6_socket != ip6_socket) closesocket(multicast6_socket);