From: ben Date: Tue, 7 Jan 2003 22:45:12 +0000 (+0000) Subject: Initialise the "protocol" field of a new ssh_tag to NULL so Bad Things don't X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/3648d4c5e474049da92b2331610897f1b2d5c06b?hp=ee22d542c70c0c343060be1d2f23883f0d236b78 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 --- 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;