Johannes Stezenbach : ws2_32: Set *res = NULL for error return from WS_getaddrinfo().
Alexandre Julliard
julliard at winehq.org
Mon Dec 24 14:21:32 CST 2007
Module: wine
Branch: master
Commit: ca4d35fe4819957fa9a4aa4b73f255f2f836e3aa
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ca4d35fe4819957fa9a4aa4b73f255f2f836e3aa
Author: Johannes Stezenbach <js at sig21.net>
Date: Sat Dec 22 23:29:55 2007 +0100
ws2_32: Set *res = NULL for error return from WS_getaddrinfo().
---
dlls/ws2_32/socket.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 12024f5..f1ea825 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;
More information about the wine-cvs
mailing list