X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/080954b86f2b5d52a6ab8401faeb9ac4dd9c7e08..614a20a0312335b76fb7a080c73b36cf81965d86:/pageant.c diff --git a/pageant.c b/pageant.c index e0018639..6ab373e1 100644 --- a/pageant.c +++ b/pageant.c @@ -652,7 +652,7 @@ static void answer_msg(void *msg) char *comment; int commentlen; key = smalloc(sizeof(struct RSAKey)); - memset(key, 0, sizeof(key)); + memset(key, 0, sizeof(struct RSAKey)); p += makekey(p, key, NULL, 1); p += makeprivate(p, key); p += ssh1_read_bignum(p, &key->iqmp); /* p^-1 mod q */