From d54747567b889b56f3cbbacd4525c30bdd7c5655 Mon Sep 17 00:00:00 2001 From: ben Date: Sat, 22 Jan 2005 15:32:10 +0000 Subject: [PATCH] When calling getaddrinfo() for a listening socket, pass in a suggested type of SOCK_STREAM, since that's what we'll be using. git-svn-id: svn://svn.tartarus.org/sgt/putty@5170 cda61777-01e9-0310-a592-d414129be87e --- unix/uxnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/uxnet.c b/unix/uxnet.c index be7fb70b..357fc862 100644 --- a/unix/uxnet.c +++ b/unix/uxnet.c @@ -705,7 +705,7 @@ Socket sk_newlistener(char *srcaddr, int port, Plug plug, int local_host_only, i #ifndef NO_IPV6 hints.ai_flags = AI_NUMERICHOST; hints.ai_family = address_family; - hints.ai_socktype = 0; + hints.ai_socktype = SOCK_STREAM; hints.ai_protocol = 0; hints.ai_addrlen = 0; hints.ai_addr = NULL; -- 2.11.0