mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-09 15:18:06 -05:00
When calling getaddrinfo() for a listening socket, pass in a suggested type
of SOCK_STREAM, since that's what we'll be using. [originally from svn r5170]
This commit is contained in:
parent
a54961fe87
commit
30fae9ffcb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user