From 3648d4c5e474049da92b2331610897f1b2d5c06b Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 7 Jan 2003 22:45:12 +0000 Subject: [PATCH] Initialise the "protocol" field of a new ssh_tag to NULL so Bad Things don't 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssh.c b/ssh.c index bfbef639..eea76c07 100644 --- 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; -- 2.11.0