1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

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]
This commit is contained in:
Ben Harris 2003-01-07 22:45:12 +00:00
parent a261492e70
commit bdd6633970

2
ssh.c
View File

@ -5926,6 +5926,8 @@ static char *ssh_init(void *frontend_handle, void **backend_handle,
ssh->overall_bufsize = 0; ssh->overall_bufsize = 0;
ssh->fallback_cmd = 0; ssh->fallback_cmd = 0;
ssh->protocol = NULL;
p = connect_to_host(ssh, host, port, realhost, nodelay); p = connect_to_host(ssh, host, port, realhost, nodelay);
if (p != NULL) if (p != NULL)
return p; return p;