From ca4d35fe4819957fa9a4aa4b73f255f2f836e3aa Mon Sep 17 00:00:00 2001 From: Johannes Stezenbach Date: Sat, 22 Dec 2007 23:29:55 +0100 Subject: [PATCH] ws2_32: Set *res = NULL for error return from WS_getaddrinfo(). --- dlls/ws2_32/socket.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index 12024f52dfb..f1ea825976c 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -3480,6 +3480,7 @@ int WINAPI WS_getaddrinfo(LPCSTR nodename, LPCSTR servname, const struct WS_addr freeaddrinfo(unixaires); } else { result = convert_eai_u2w(result); + *res = NULL; } return result;