From: ben Date: Sat, 22 Jan 2005 15:20:35 +0000 (+0000) Subject: Stupid typo, spotted by GCC. X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/7f8c817ccd81383f0aaf855456e8e373c0077c02 Stupid typo, spotted by GCC. git-svn-id: svn://svn.tartarus.org/sgt/putty@5168 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/unix/uxnet.c b/unix/uxnet.c index 8804b09b..be7fb70b 100644 --- a/unix/uxnet.c +++ b/unix/uxnet.c @@ -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; }