From 30feb7b285691f77fae2ac6c6f34b118e5839ea4 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Thu, 17 Jul 2008 08:07:37 +0000 Subject: [PATCH] fix for getaddrinfo patch by Yuri Sidorov svn path=/trunk/; revision=34560 --- reactos/dll/win32/ws2_32/misc/ns.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/ws2_32/misc/ns.c b/reactos/dll/win32/ws2_32/misc/ns.c index c7a1872f973..bf2cda5a8b2 100644 --- a/reactos/dll/win32/ws2_32/misc/ns.c +++ b/reactos/dll/win32/ws2_32/misc/ns.c @@ -1427,7 +1427,9 @@ getaddrinfo(const char FAR * nodename, return WSAHOST_NOT_FOUND; port = se->s_port; } - + else + port = htons(port); + if (nodename) { /* Is it an IPv6 address? */