1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

Stupid typo, spotted by GCC.

[originally from svn r5168]
This commit is contained in:
Ben Harris 2005-01-22 15:20:35 +00:00
parent 258a87361a
commit a54961fe87

View 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;
}