mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-08 08:58:00 +00:00
Fix minor memory leak in rsa-sha2-256 userauth.
This commit is contained in:
parent
2ebd4ea36a
commit
1e0b966b73
@ -862,6 +862,7 @@ static void ssh2_userauth_process_queue(PacketProtocolLayer *ppl)
|
||||
s->publickey_algorithm = dupstr("rsa-sha2-512");
|
||||
s->signflags = SSH_AGENT_RSA_SHA2_512;
|
||||
} else if (s->ppl.bpp->ext_info_rsa_sha256_ok) {
|
||||
sfree(s->publickey_algorithm);
|
||||
s->publickey_algorithm = dupstr("rsa-sha2-256");
|
||||
s->signflags = SSH_AGENT_RSA_SHA2_256;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user