From: jacob Date: Wed, 15 Nov 2006 23:42:22 +0000 (+0000) Subject: Chris Boucher spotted that after "-nc" was added (r6823), cfg->ssh_nc_host X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/7f5749db9ede654f6a9daaebc1bcc7590468a1e0 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. git-svn-id: svn://svn.tartarus.org/sgt/putty@6907 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/settings.c b/settings.c index 3c4c73e3..5040fa25 100644 --- a/settings.c +++ b/settings.c @@ -464,6 +464,7 @@ void load_open_settings(void *sesskey, int do_host, Config *cfg) cfg->ssh_subsys = 0; /* FIXME: load this properly */ cfg->remote_cmd_ptr = NULL; cfg->remote_cmd_ptr2 = NULL; + cfg->ssh_nc_host[0] = '\0'; if (do_host) { gpps(sesskey, "HostName", "", cfg->host, sizeof(cfg->host));