From: jacob Date: Mon, 16 May 2005 08:31:05 +0000 (+0000) Subject: Don't try and set up reconfigured port-forwardings if the connection isn't yet X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/3b6606c73ff0723f80146f1befa4838d59d3f8cf Don't try and set up reconfigured port-forwardings if the connection isn't yet ready for them. Spotted by Martin Dushkov. git-svn-id: svn://svn.tartarus.org/sgt/putty@5786 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/ssh.c b/ssh.c index 520f6fa7..69972e49 100644 --- a/ssh.c +++ b/ssh.c @@ -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) {