From 7f8c817ccd81383f0aaf855456e8e373c0077c02 Mon Sep 17 00:00:00 2001 From: ben Date: Sat, 22 Jan 2005 15:20:35 +0000 Subject: [PATCH] Stupid typo, spotted by GCC. git-svn-id: svn://svn.tartarus.org/sgt/putty@5168 cda61777-01e9-0310-a592-d414129be87e --- unix/uxnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.11.0