mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05:00
Fix crash in GSSAPI key exchange.
Introduced recently by commit 42740a5455
, in which I decided to
call ssh_key_cache_str() even on certified host keys. But that call
was conditional on s->hkey being non-NULL (which happens in GSS KEX)
as well as on it not being certified, and I managed to absentmindedly
remove _both_ conditions. As a result we got a null-pointer
dereference on any GSS kex.
This commit is contained in:
@ -718,7 +718,7 @@ void ssh2kex_coroutine(struct ssh2_transport_state *s, bool *aborted)
|
||||
}
|
||||
}
|
||||
|
||||
s->keystr = ssh_key_cache_str(s->hkey);
|
||||
s->keystr = s->hkey ? ssh_key_cache_str(s->hkey) : NULL;
|
||||
#ifndef NO_GSSAPI
|
||||
if (s->gss_kex_used) {
|
||||
/*
|
||||
|
Reference in New Issue
Block a user