]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Ahem. Make sure I NULL out any unused pointer field that I later
authorSimon Tatham <anakin@pobox.com>
Wed, 8 Oct 2008 18:09:56 +0000 (18:09 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 8 Oct 2008 18:09:56 +0000 (18:09 +0000)
plan to free if it isn't NULL.

[originally from svn r8202]

sshrsa.c

index 371b3e1f9dd26e0a183288ee83c2f21e276e8b55..3c0feafe5b5700d56bacb5b782400af0692c7df6 100644 (file)
--- a/sshrsa.c
+++ b/sshrsa.c
@@ -489,6 +489,7 @@ static void *rsa2_newkey(char *data, int len)
     rsa->exponent = getmp(&data, &len);
     rsa->modulus = getmp(&data, &len);
     rsa->private_exponent = NULL;
+    rsa->p = rsa->q = rsa->iqmp = NULL;
     rsa->comment = NULL;
 
     return rsa;