mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 18:07:59 +00:00
Deal with "possible unintended assignment" warnings.
[originally from svn r2461]
This commit is contained in:
parent
b91ae87c78
commit
7c37547df8
4
ssh.c
4
ssh.c
@ -2065,7 +2065,7 @@ static char *connect_to_host(Ssh ssh, char *host, int port,
|
|||||||
*/
|
*/
|
||||||
logeventf(ssh, "Looking up host \"%s\"", host);
|
logeventf(ssh, "Looking up host \"%s\"", host);
|
||||||
addr = name_lookup(host, port, realhost);
|
addr = name_lookup(host, port, realhost);
|
||||||
if ((err = sk_addr_error(addr)))
|
if ((err = sk_addr_error(addr)) != NULL)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -2078,7 +2078,7 @@ static char *connect_to_host(Ssh ssh, char *host, int port,
|
|||||||
}
|
}
|
||||||
ssh->fn = &fn_table;
|
ssh->fn = &fn_table;
|
||||||
ssh->s = new_connection(addr, *realhost, port, 0, 1, nodelay, (Plug) ssh);
|
ssh->s = new_connection(addr, *realhost, port, 0, 1, nodelay, (Plug) ssh);
|
||||||
if ((err = sk_socket_error(ssh->s))) {
|
if ((err = sk_socket_error(ssh->s)) != NULL) {
|
||||||
ssh->s = NULL;
|
ssh->s = NULL;
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user