From d094883d3c13500631fed9ae8e9d016fb26d2676 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 21 Nov 2000 10:53:10 +0000 Subject: [PATCH] Fix segfault when you press a key before the SSH protocol decides whether it's doing SSH1 or SSH2. Only visible on slow servers :-) [originally from svn r803] --- ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh.c b/ssh.c index 26379e12..d2eb302c 100644 --- a/ssh.c +++ b/ssh.c @@ -2680,7 +2680,7 @@ static char *ssh_init (char *host, int port, char **realhost) { * Called to send data down the Telnet connection. */ static void ssh_send (char *buf, int len) { - if (s == NULL) + if (s == NULL || ssh_protocol == NULL) return; ssh_protocol(buf, len, 0);