mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 09:42:25 +00:00
"possible unintended assignment"? I think not.
[originally from svn r2468]
This commit is contained in:
parent
b9e913ab88
commit
f4e13ef19b
4
x11fwd.c
4
x11fwd.c
@ -204,7 +204,7 @@ char *x11_init(Socket * s, char *display, void *c, void *auth)
|
|||||||
* Try to find host.
|
* Try to find host.
|
||||||
*/
|
*/
|
||||||
addr = name_lookup(host, port, &dummy_realhost);
|
addr = name_lookup(host, port, &dummy_realhost);
|
||||||
if ((err = sk_addr_error(addr)))
|
if ((err = sk_addr_error(addr)) != NULL)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
port = 6000 + displaynum;
|
port = 6000 + displaynum;
|
||||||
@ -222,7 +222,7 @@ char *x11_init(Socket * s, char *display, void *c, void *auth)
|
|||||||
pr->c = c;
|
pr->c = c;
|
||||||
|
|
||||||
pr->s = *s = new_connection(addr, dummy_realhost, port, 0, 1, 0, (Plug) pr);
|
pr->s = *s = new_connection(addr, dummy_realhost, port, 0, 1, 0, (Plug) pr);
|
||||||
if ((err = sk_socket_error(*s))) {
|
if ((err = sk_socket_error(*s)) != NULL) {
|
||||||
sfree(pr);
|
sfree(pr);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user