[quake3-commits] r2298 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Jul 5 09:33:55 EDT 2012


Author: ztm
Date: 2012-07-05 09:33:55 -0400 (Thu, 05 Jul 2012)
New Revision: 2298

Modified:
   trunk/code/qcommon/net_ip.c
Log:
We should not try to broadcast via the IPv4 socket if that socket is closed.

Previously, error messages were generated when querying local servers while IPv4 was disabled. Patch from /dev/humancontroller.

Modified: trunk/code/qcommon/net_ip.c
===================================================================
--- trunk/code/qcommon/net_ip.c	2012-07-02 01:03:55 UTC (rev 2297)
+++ trunk/code/qcommon/net_ip.c	2012-07-05 13:33:55 UTC (rev 2298)
@@ -651,6 +651,7 @@
 	}
 
 	if( (ip_socket == INVALID_SOCKET && to.type == NA_IP) ||
+		(ip_socket == INVALID_SOCKET && to.type == NA_BROADCAST) ||
 		(ip6_socket == INVALID_SOCKET && to.type == NA_IP6) ||
 		(ip6_socket == INVALID_SOCKET && to.type == NA_MULTICAST6) )
 		return;
@@ -690,7 +691,7 @@
 			return;
 		}
 
-		Com_Printf( "NET_SendPacket: %s\n", NET_ErrorString() );
+		Com_Printf( "Sys_SendPacket: %s\n", NET_ErrorString() );
 	}
 }
 



More information about the quake3-commits mailing list