From bdd6633970d9c53ce0ad97b460c8c684285bb15e Mon Sep 17 00:00:00 2001 From: Ben Harris 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. [originally from svn r2492] --- 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;