Fixes for NO_IPV6 compilation under Unix.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 5 Mar 2005 15:04:48 +0000 (15:04 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 5 Mar 2005 15:04:48 +0000 (15:04 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@5443 cda61777-01e9-0310-a592-d414129be87e

unix/uxnet.c

index 7b97041..6e491f6 100644 (file)
@@ -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