From 680a32d5bc71fef8611fc69c7f55579902aefd9a Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Mon, 16 May 2005 08:31:05 +0000 Subject: [PATCH] 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] --- ssh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {