1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

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]
This commit is contained in:
Simon Tatham 2008-10-08 18:09:56 +00:00
parent a59c4e9486
commit ff294f4ffd

View File

@ -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;