mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-02-04 14:12:24 +00:00
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]
This commit is contained in:
parent
0ff0fad344
commit
d094883d3c
2
ssh.c
2
ssh.c
@ -2680,7 +2680,7 @@ static char *ssh_init (char *host, int port, char **realhost) {
|
|||||||
* Called to send data down the Telnet connection.
|
* Called to send data down the Telnet connection.
|
||||||
*/
|
*/
|
||||||
static void ssh_send (char *buf, int len) {
|
static void ssh_send (char *buf, int len) {
|
||||||
if (s == NULL)
|
if (s == NULL || ssh_protocol == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ssh_protocol(buf, len, 0);
|
ssh_protocol(buf, len, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user