Author: akhaldi
Date: Tue Nov 3 21:14:54 2015
New Revision: 69800
URL:
http://svn.reactos.org/svn/reactos?rev=69800&view=rev
Log:
[WS2_32_NEW] Properly set the sin_zero field. Revealed by ws2_32_apitest:addrinfo, fixed
by Peter Hater. CORE-10440
Modified:
trunk/reactos/dll/win32/ws2_32_new/src/addrinfo.c
Modified: trunk/reactos/dll/win32/ws2_32_new/src/addrinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32_new/src/a…
==============================================================================
--- trunk/reactos/dll/win32/ws2_32_new/src/addrinfo.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ws2_32_new/src/addrinfo.c [iso-8859-1] Tue Nov 3 21:14:54
2015
@@ -132,7 +132,8 @@
SockAddress->sin_family = AF_INET;
SockAddress->sin_port = Port;
SockAddress->sin_addr.s_addr = Address;
-
+ ZeroMemory(SockAddress->sin_zero, sizeof(SockAddress->sin_zero));
+
/* Fill out the addrinfo */
AddrInfo->ai_family = PF_INET;
AddrInfo->ai_socktype = SocketType;