mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +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:
parent
a59c4e9486
commit
ff294f4ffd
1
sshrsa.c
1
sshrsa.c
@ -489,6 +489,7 @@ static void *rsa2_newkey(char *data, int len)
|
|||||||
rsa->exponent = getmp(&data, &len);
|
rsa->exponent = getmp(&data, &len);
|
||||||
rsa->modulus = getmp(&data, &len);
|
rsa->modulus = getmp(&data, &len);
|
||||||
rsa->private_exponent = NULL;
|
rsa->private_exponent = NULL;
|
||||||
|
rsa->p = rsa->q = rsa->iqmp = NULL;
|
||||||
rsa->comment = NULL;
|
rsa->comment = NULL;
|
||||||
|
|
||||||
return rsa;
|
return rsa;
|
||||||
|
Loading…
Reference in New Issue
Block a user