When manually initialising a 'struct RSAKey' due to loading an SSH1
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 13 Nov 2012 21:34:12 +0000 (21:34 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 13 Nov 2012 21:34:12 +0000 (21:34 +0000)
commita1e50b70a5fbeb472d136794e052f02266571fcf
treefad6472bcc0a70f433e621d469525d6ef9ad97ff
parentae87c7f79fc346c83eda63a08ac6e2f619debcf8
When manually initialising a 'struct RSAKey' due to loading an SSH1
public key but not the private half, NULL out all the CRT-optimisation
fields as well as the private exponent pointer. Otherwise segfaults -
security-harmless, but annoying - can happen in freersakey() when we
notice they aren't null and try to free them.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9705 cda61777-01e9-0310-a592-d414129be87e
cmdgen.c