From: simon Date: Fri, 23 Jun 2000 09:44:15 +0000 (+0000) Subject: Fix subtle problem with scp protocol/port selection X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/a721b9eb69ecd999da5e945ab1901bf02ecfec02 Fix subtle problem with scp protocol/port selection git-svn-id: svn://svn.tartarus.org/sgt/putty@505 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/windlg.c b/windlg.c index 46f90634..23aee3ff 100644 --- a/windlg.c +++ b/windlg.c @@ -117,7 +117,7 @@ static void save_settings (char *section, int do_host) { wpps (sesskey, "HostName", cfg.host); wppi (sesskey, "PortNumber", cfg.port); p = "raw"; - for (i = 0; backends[i].backend != NULL; i++) + for (i = 0; backends[i].name != NULL; i++) if (backends[i].protocol == cfg.protocol) { p = backends[i].name; break; @@ -243,7 +243,7 @@ static void load_settings (char *section, int do_host) { gpps (sesskey, "Protocol", "default", prot, 10); cfg.protocol = default_protocol; - for (i = 0; backends[i].backend != NULL; i++) + for (i = 0; backends[i].name != NULL; i++) if (!strcmp(prot, backends[i].name)) { cfg.protocol = backends[i].protocol; break;