diff --git a/wolfcrypt/src/tfm.c b/wolfcrypt/src/tfm.c index 4c1fa9aac..b4a224a05 100644 --- a/wolfcrypt/src/tfm.c +++ b/wolfcrypt/src/tfm.c @@ -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;