Author: gedmurphy
Date: Mon Nov 17 05:51:33 2008
New Revision: 37395
URL:
http://svn.reactos.org/svn/reactos?rev=37395&view=rev
Log:
- reference the correct data
- set the response info before returning
See issue #2808 for more details.
Modified:
trunk/reactos/dll/win32/ws2_32/misc/ns.c
Modified: trunk/reactos/dll/win32/ws2_32/misc/ns.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32/misc/ns.c…
==============================================================================
--- trunk/reactos/dll/win32/ws2_32/misc/ns.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ws2_32/misc/ns.c [iso-8859-1] Mon Nov 17 05:51:33 2008
@@ -1514,7 +1514,7 @@
ai->ai_family = PF_INET;
ai->ai_addrlen = sizeof(struct sockaddr_in);
ai->ai_addr = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
ai->ai_addrlen);
- sin = (struct sockaddr_in *)ret->ai_addr;
+ sin = (struct sockaddr_in *)ai->ai_addr;
sin->sin_family = AF_INET;
sin->sin_port = port;
if (hints)
@@ -1531,6 +1531,7 @@
if (ai->ai_protocol == 0)
ai->ai_protocol = hints->ai_protocol;
}
+ ret = ai;
}
if (ret == NULL)