mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
Chris Boucher spotted that after "-nc" was added (r6823), cfg->ssh_nc_host
was not always initialised, which could lead to spurious attempts to open
a bogus channel (typically refused: "FATAL ERROR: Server refused to open
a direct-tcpip channel"). Fixed.
[originally from svn r6907]
[r6823 == 631b494807
]
This commit is contained in:
parent
ffdbfd42a0
commit
53843b7392
@ -464,6 +464,7 @@ void load_open_settings(void *sesskey, int do_host, Config *cfg)
|
|||||||
cfg->ssh_subsys = 0; /* FIXME: load this properly */
|
cfg->ssh_subsys = 0; /* FIXME: load this properly */
|
||||||
cfg->remote_cmd_ptr = NULL;
|
cfg->remote_cmd_ptr = NULL;
|
||||||
cfg->remote_cmd_ptr2 = NULL;
|
cfg->remote_cmd_ptr2 = NULL;
|
||||||
|
cfg->ssh_nc_host[0] = '\0';
|
||||||
|
|
||||||
if (do_host) {
|
if (do_host) {
|
||||||
gpps(sesskey, "HostName", "", cfg->host, sizeof(cfg->host));
|
gpps(sesskey, "HostName", "", cfg->host, sizeof(cfg->host));
|
||||||
|
Loading…
Reference in New Issue
Block a user