1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

Don't try and set up reconfigured port-forwardings if the connection isn't yet

ready for them. Spotted by Martin Dushkov.

[originally from svn r5786]
This commit is contained in:
Jacob Nevins 2005-05-16 08:31:05 +00:00
parent ab855b74c5
commit 680a32d5bc

3
ssh.c
View File

@ -8024,7 +8024,8 @@ static void ssh_reconfig(void *handle, Config *cfg)
unsigned long old_max_data_size;
pinger_reconfig(ssh->pinger, &ssh->cfg, cfg);
ssh_setup_portfwd(ssh, cfg);
if (ssh->portfwds)
ssh_setup_portfwd(ssh, cfg);
if (ssh->cfg.ssh_rekey_time != cfg->ssh_rekey_time &&
cfg->ssh_rekey_time != 0) {