Plink and PSCP were failing to load the `Default Settings' options
[u/mdw/putty] / scp.c
diff --git a/scp.c b/scp.c
index 81f925b..b831fbb 100644 (file)
--- a/scp.c
+++ b/scp.c
@@ -444,6 +444,7 @@ static void do_cmd(char *host, char *user, char *cmd)
     do_defaults(host, &cfg);
     if (cfg.host[0] == '\0') {
        /* No settings for this host; use defaults */
+        do_defaults(NULL, &cfg);
        strncpy(cfg.host, host, sizeof(cfg.host)-1);
        cfg.host[sizeof(cfg.host)-1] = '\0';
        cfg.port = 22;