X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/f3e0acda46a71035ca81f7b352d7b61aa451ee23..dffa03fd4ff49ee1ca28c9ea82aae136509c70c5:/unix/uxnet.c?ds=sidebyside diff --git a/unix/uxnet.c b/unix/uxnet.c index 7b970416..6e491f69 100644 --- a/unix/uxnet.c +++ b/unix/uxnet.c @@ -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)) { /* Override localhost_only with specified listen addr. */ ret->localhost_only = ipv4_is_loopback(a.sin_addr); - got_addr = 1; } - addr = (struct sockaddr *)a; + addr = (struct sockaddr *)&a; addrlen = sizeof(a); retcode = 0; #endif