mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-15 18:18:05 -05:00
Use default_port' rather than
22' when loading a default session.
[originally from svn r896]
This commit is contained in:
parent
7a79df8fe6
commit
9a31bb3905
4
plink.c
4
plink.c
@ -387,7 +387,7 @@ int main(int argc, char **argv) {
|
|||||||
/* No settings for this host; use defaults */
|
/* No settings for this host; use defaults */
|
||||||
strncpy(cfg.host, p, sizeof(cfg.host)-1);
|
strncpy(cfg.host, p, sizeof(cfg.host)-1);
|
||||||
cfg.host[sizeof(cfg.host)-1] = '\0';
|
cfg.host[sizeof(cfg.host)-1] = '\0';
|
||||||
cfg.port = 22;
|
cfg.port = default_port;
|
||||||
} else
|
} else
|
||||||
cfg = cfg2;
|
cfg = cfg2;
|
||||||
} else {
|
} else {
|
||||||
@ -396,7 +396,7 @@ int main(int argc, char **argv) {
|
|||||||
cfg.username[sizeof(cfg.username)-1] = '\0';
|
cfg.username[sizeof(cfg.username)-1] = '\0';
|
||||||
strncpy(cfg.host, r, sizeof(cfg.host)-1);
|
strncpy(cfg.host, r, sizeof(cfg.host)-1);
|
||||||
cfg.host[sizeof(cfg.host)-1] = '\0';
|
cfg.host[sizeof(cfg.host)-1] = '\0';
|
||||||
cfg.port = 22;
|
cfg.port = default_port;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user