]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/blobdiff - unix/uxnet.c
If it's available, try to use clock_gettime(CLOCK_MONOTONIC) rather than
[PuTTY_svn.git] / unix / uxnet.c
index 7b970416cd8f99bcd84bcf03f1098454e8613285..6e491f69bcc95b06828c6ef99d210c58412a7fa7 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