Initialise the "protocol" field of a new ssh_tag to NULL so Bad Things don't
[sgt/putty] / 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;