summaryrefslogtreecommitdiff
path: root/src/qcommon
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcommon')
-rw-r--r--src/qcommon/net_ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qcommon/net_ip.c b/src/qcommon/net_ip.c
index 0b494dc8..f7531c6e 100644
--- a/src/qcommon/net_ip.c
+++ b/src/qcommon/net_ip.c
@@ -1530,7 +1530,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);