зеркало из https://github.com/github/putty.git
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:
Родитель
0ff0fad344
Коммит
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.
|
||||
*/
|
||||
static void ssh_send (char *buf, int len) {
|
||||
if (s == NULL)
|
||||
if (s == NULL || ssh_protocol == NULL)
|
||||
return;
|
||||
|
||||
ssh_protocol(buf, len, 0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче