forked from wolfSSL/wolfssl
Add NULL check in TFM's fp_forcezero.
This commit is contained in:
@@ -4398,6 +4398,9 @@ void fp_clear(fp_int *a)
|
||||
|
||||
void fp_forcezero (mp_int * a)
|
||||
{
|
||||
if (a == NULL)
|
||||
return;
|
||||
|
||||
int size;
|
||||
a->used = 0;
|
||||
a->sign = FP_ZPOS;
|
||||
|
Reference in New Issue
Block a user