Index: reactos/dll/win32/ws2_32/misc/ns.c
===================================================================
--- reactos/dll/win32/ws2_32/misc/ns.c	(revision 71944)
+++ reactos/dll/win32/ws2_32/misc/ns.c	(working copy)
@@ -1610,6 +1610,7 @@
         error = WSAEINVAL;
         goto End;
     }
+    *res = NULL;
     if (nodename == NULL && servname == NULL)
     {
         error = WSAHOST_NOT_FOUND;
