Skip to content

Commit f093268

Browse files
committed
Fix F381 to harden wc_MakeDsaKey
1 parent 967aaa2 commit f093268

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/dsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ int wc_MakeDsaKey(WC_RNG *rng, DsaKey *dsa)
227227
dsa->type = DSA_PRIVATE;
228228

229229
if (err != MP_OKAY) {
230-
mp_clear(&dsa->x);
230+
mp_forcezero(&dsa->x);
231231
mp_clear(&dsa->y);
232232
}
233233

0 commit comments

Comments
 (0)