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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Jun 22 19:32:11 EDT 2009


Author: thilo
Date: 2009-06-22 19:32:11 -0400 (Mon, 22 Jun 2009)
New Revision: 1575

Modified:
   trunk/code/qcommon/net_ip.c
Log:
Fix setsockopt so that setting the IPV6ONLY flag really works.


Modified: trunk/code/qcommon/net_ip.c
===================================================================
--- trunk/code/qcommon/net_ip.c	2009-06-14 21:45:55 UTC (rev 1574)
+++ trunk/code/qcommon/net_ip.c	2009-06-22 23:32:11 UTC (rev 1575)
@@ -934,7 +934,7 @@
 
 #ifdef IPV6_V6ONLY
 	{
-		int i;
+		int i = 1;
 
 		// ipv4 addresses should not be allowed to connect via this socket.
 		if(setsockopt(newsocket, IPPROTO_IPV6, IPV6_V6ONLY, (char *) &i, sizeof(i)) == SOCKET_ERROR)



More information about the quake3-commits mailing list