mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-05-30 08:20:28 -05:00
Fixes for NO_IPV6 compilation under Unix.
[originally from svn r5443]
This commit is contained in:
parent
c151955408
commit
5c5dc61522
@ -744,9 +744,8 @@ Socket sk_newlistener(char *srcaddr, int port, Plug plug, int local_host_only, i
|
|||||||
if (a.sin_addr.s_addr != (in_addr_t)(-1)) {
|
if (a.sin_addr.s_addr != (in_addr_t)(-1)) {
|
||||||
/* Override localhost_only with specified listen addr. */
|
/* Override localhost_only with specified listen addr. */
|
||||||
ret->localhost_only = ipv4_is_loopback(a.sin_addr);
|
ret->localhost_only = ipv4_is_loopback(a.sin_addr);
|
||||||
got_addr = 1;
|
|
||||||
}
|
}
|
||||||
addr = (struct sockaddr *)a;
|
addr = (struct sockaddr *)&a;
|
||||||
addrlen = sizeof(a);
|
addrlen = sizeof(a);
|
||||||
retcode = 0;
|
retcode = 0;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user