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:
parent
258a87361a
commit
a54961fe87
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user