1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

pageant_get_keylist: add missing init of kl->broken.

In commit d53b3bcd22 I changed the final setting of kl->broken
so that it wouldn't overwrite a 'true' value set earlier in the
function. But that means it might not be set at all, because I forgot
I now needed to initialise it to false. Ahem.
This commit is contained in:
Simon Tatham 2021-04-10 10:55:53 +01:00
parent 0f9e0d6e41
commit 7c42ca0280

View File

@ -1894,6 +1894,7 @@ static KeyList *pageant_get_keylist(unsigned ssh_version)
KeyList *kl = snew(KeyList);
kl->nkeys = get_uint32(pco);
kl->keys = snewn(kl->nkeys, struct KeyListEntry);
kl->broken = false;
for (size_t i = 0; i < kl->nkeys && !get_err(pco); i++) {
if (ssh_version == 1) {