[enet-cvs] CVS: enet win32.c,1.3,1.4

Lee Salzman enet-discuss@lists.puremagic.com
Thu, 10 Oct 2002 14:34:52 -0600


Update of /home/enet/cvsroot/enet
In directory sferik:/tmp/cvs-serv6859

Modified Files:
	win32.c 
Log Message:
Small fix to Win32 client socket code.



Index: win32.c
===================================================================
RCS file: /home/enet/cvsroot/enet/win32.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- win32.c	2002/06/08 02:29:12	1.3
+++ win32.c	2002/10/10 20:34:49	1.4
@@ -109,6 +109,7 @@
     }
 
     if ((type == ENET_SOCKET_TYPE_STREAM &&
+          address != NULL &&
           listen (newSocket, SOMAXCONN) == SOCKET_ERROR) ||
         bind (newSocket,    
               (struct sockaddr *) & sin,