]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
When manually initialising a 'struct RSAKey' due to loading an SSH1
authorSimon Tatham <anakin@pobox.com>
Tue, 13 Nov 2012 21:34:12 +0000 (21:34 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 13 Nov 2012 21:34:12 +0000 (21:34 +0000)
commit06b51312c1ec70e9120c41f7b09f560ebacc6e35
treefad6472bcc0a70f433e621d469525d6ef9ad97ff
parent69113b16b1131928dbe4fdf03eff338c99e54c20
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.

[originally from svn r9705]
cmdgen.c