1
0
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:
Jacob Nevins 2020-11-25 16:25:21 +00:00
parent 2ebd4ea36a
commit 1e0b966b73

View File

@ -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;
}