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;