Silly error in loading Default Settings - reset port but not protocol
[u/mdw/putty] / windlg.c
index 6302c55..e7d58fd 100644 (file)
--- a/windlg.c
+++ b/windlg.c
@@ -235,6 +235,7 @@ static void load_settings (char *section, int do_host) {
        else
            cfg.protocol = PROT_TELNET;
     } else {
+       cfg.protocol = PROT_TELNET;
        cfg.port = 23;
        *cfg.host = '\0';
     }