]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Chris Boucher spotted that after "-nc" was added (r6823), cfg->ssh_nc_host
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Wed, 15 Nov 2006 23:42:22 +0000 (23:42 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Wed, 15 Nov 2006 23:42:22 +0000 (23:42 +0000)
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 == 631b4948073922c2618441fb374c7e6fc22bd1d8]

settings.c

index 3c4c73e33386866f6cb004336da1cc7186e5d0bd..5040fa25e585bd056b938a85ca2eeaaaf1d4c3a9 100644 (file)
@@ -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));