]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Forgot to initialise ssh->portfwds to NULL. Unusually, this was
authorSimon Tatham <anakin@pobox.com>
Tue, 28 Dec 2004 16:18:17 +0000 (16:18 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 28 Dec 2004 16:18:17 +0000 (16:18 +0000)
pointed out by the MSVC debugger, not by valgrind :-)

[originally from svn r5034]

ssh.c

diff --git a/ssh.c b/ssh.c
index e92eb1d7738779cdf4e1aacc154c9097ff64597f..3f37c64955d72dbfa8fedccd133ddf72a81cc5e7 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -7338,6 +7338,7 @@ static const char *ssh_init(void *frontend_handle, void **backend_handle,
 
     ssh->channels = NULL;
     ssh->rportfwds = NULL;
+    ssh->portfwds = NULL;
 
     ssh->send_ok = 0;
     ssh->editing = 0;