From d698e833cdf5dc0bddf804ca47d0bb8beaa73b29 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 20 Oct 2006 12:57:25 +0000 Subject: * net.cc (cygwin_getnameinfo): Fix typo in comment. --- winsup/cygwin/net.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/net.cc') diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 5b8b78380..a1ab41515 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -3456,7 +3456,7 @@ cygwin_getnameinfo (const struct sockaddr *sa, socklen_t salen, if (getnameinfo) { /* When the incoming port number is set to 0, Winsock's getnameinfo - returns with error WSAENO_DATA instead of simply ignoring the port. + returns with error WSANO_DATA instead of simply ignoring the port. To avoid this strange behaviour, we check manually, if the port number is 0. If so, set the NI_NUMERICSERV flag to avoid this problem. */ switch (sa->sa_family) -- cgit v1.2.3