PATCH: winsock / clear ipx header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

>From Bug 1921.

Changelog:
	Wim Lewis <wiml@xxxxxxxx>
	Clear struct sockaddr_ipx directly instead of just the sipx_zero
	field.

Index: dlls/winsock/socket.c
===================================================================
RCS file: /home/wine/wine/dlls/winsock/socket.c,v
retrieving revision 1.143
diff -u -r1.143 socket.c
--- dlls/winsock/socket.c	12 Dec 2003 04:09:46 -0000	1.143
+++ dlls/winsock/socket.c	2 Jan 2004 08:31:57 -0000
@@ -729,6 +729,7 @@
 
             *uaddrlen=sizeof(struct sockaddr_ipx);
             uipx=malloc(*uaddrlen);
+            memset(&uipx,0,sizeof(uipx));
             uipx->sipx_family=AF_IPX;
             uipx->sipx_port=wsipx->sa_socket;
             /* copy sa_netnum and sa_nodenum to sipx_network and sipx_node
@@ -738,7 +739,6 @@
 #ifdef IPX_FRAME_NONE
             uipx->sipx_type=IPX_FRAME_NONE;
 #endif
-            memset(&uipx->sipx_zero,0,sizeof(uipx->sipx_zero));
             return (const struct sockaddr*)uipx;
         }
 #endif
-- 


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux