From 7c42ca02808df4bb46963ed58b45a469cd5f6855 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 10 Apr 2021 10:55:53 +0100 Subject: [PATCH] pageant_get_keylist: add missing init of kl->broken. In commit d53b3bcd22ace906 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. --- pageant.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pageant.c b/pageant.c index 5d7e0b8d..8ca9310b 100644 --- a/pageant.c +++ b/pageant.c @@ -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) {