From: Amine Khaldi Date: Tue, 3 Nov 2015 21:14:54 +0000 (+0000) Subject: [WS2_32_NEW] Properly set the sin_zero field. Revealed by ws2_32_apitest:addrinfo... X-Git-Tag: ReactOS-0.4.0~255 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=48a82a72f4a5863348d1a0b8c7c08a68b3ffec3c [WS2_32_NEW] Properly set the sin_zero field. Revealed by ws2_32_apitest:addrinfo, fixed by Peter Hater. CORE-10440 svn path=/trunk/; revision=69800 --- diff --git a/reactos/dll/win32/ws2_32_new/src/addrinfo.c b/reactos/dll/win32/ws2_32_new/src/addrinfo.c index 197efbab9ab..73ce8963069 100644 --- a/reactos/dll/win32/ws2_32_new/src/addrinfo.c +++ b/reactos/dll/win32/ws2_32_new/src/addrinfo.c @@ -132,7 +132,8 @@ NewAddrInfo(IN INT SocketType, 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;