Initialise the "protocol" field of a new ssh_tag to NULL so Bad Things don't
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Tue, 7 Jan 2003 22:45:12 +0000 (22:45 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Tue, 7 Jan 2003 22:45:12 +0000 (22:45 +0000)
happen if we try to type things before the SSH banner has been received.

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

ssh.c

diff --git a/ssh.c b/ssh.c
index bfbef63..eea76c0 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -5926,6 +5926,8 @@ static char *ssh_init(void *frontend_handle, void **backend_handle,
     ssh->overall_bufsize = 0;
     ssh->fallback_cmd = 0;
 
+    ssh->protocol = NULL;
+
     p = connect_to_host(ssh, host, port, realhost, nodelay);
     if (p != NULL)
        return p;