Add NULL check in TFM's fp_forcezero.

This commit is contained in:
Kareem
2023-07-06 14:47:18 -07:00
parent 657679efda
commit fb9e036d5b

View File

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