Stupid typo, spotted by GCC.
[u/mdw/putty] / unix / uxnet.c
index 8804b09..be7fb70 100644 (file)
@@ -713,7 +713,7 @@ Socket sk_newlistener(char *srcaddr, int port, Plug plug, int local_host_only, i
         hints.ai_next = NULL;
         sprintf(portstr, "%d", port);
         retcode = getaddrinfo(srcaddr, portstr, &hints, &ai);
-       if (retcode = 0) {
+       if (retcode == 0) {
            addr = ai->ai_addr;
            addrlen = ai->ai_addrlen;
        }