From ff294f4ffd306558dade2aa1192ac29ab440d454 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 8 Oct 2008 18:09:56 +0000 Subject: [PATCH] Ahem. Make sure I NULL out any unused pointer field that I later plan to free if it isn't NULL. [originally from svn r8202] --- sshrsa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sshrsa.c b/sshrsa.c index 371b3e1f..3c0feafe 100644 --- 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;