Forgot to initialise ssh->portfwds to NULL. Unusually, this was
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 28 Dec 2004 16:18:17 +0000 (16:18 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 28 Dec 2004 16:18:17 +0000 (16:18 +0000)
pointed out by the MSVC debugger, not by valgrind :-)

git-svn-id: svn://svn.tartarus.org/sgt/putty@5034 cda61777-01e9-0310-a592-d414129be87e

ssh.c

diff --git a/ssh.c b/ssh.c
index e92eb1d..3f37c64 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;