]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - ssh.c
Unix PSCP was tight-looping when connecting through a ProxyCommand.
[PuTTY.git] / ssh.c
diff --git a/ssh.c b/ssh.c
index e0facac1ae99f968768a085fad4e367b10721bfe..8c552b1e6305f97729d16c05970f40946b197b30 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -7235,12 +7235,14 @@ static void ssh_free(void *handle)
            sfree(c);
        }
        freetree234(ssh->channels);
+       ssh->channels = NULL;
     }
 
     if (ssh->rportfwds) {
        while ((pf = delpos234(ssh->rportfwds, 0)) != NULL)
            sfree(pf);
        freetree234(ssh->rportfwds);
+       ssh->rportfwds = NULL;
     }
     sfree(ssh->deferred_send_data);
     if (ssh->x11auth)