When manually initialising a 'struct RSAKey' due to loading an SSH1
[sgt/putty] / cmdgen.c
index 86a548e..254ae6a 100644 (file)
--- a/cmdgen.c
+++ b/cmdgen.c
@@ -763,6 +763,9 @@ int main(int argc, char **argv)
                }
                ssh1key->comment = dupstr(origcomment);
                ssh1key->private_exponent = NULL;
+               ssh1key->p = NULL;
+               ssh1key->q = NULL;
+               ssh1key->iqmp = NULL;
            } else {
                ret = loadrsakey(infilename, ssh1key, passphrase, &error);
            }