Skip to content

Commit c4a126c

Browse files
committed
Fix finding 421
1 parent 0ea5deb commit c4a126c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/tpm2_wrap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3231,6 +3231,8 @@ int wolfTPM2_DecodeEccDer(const byte* der, word32 derSz, TPM2B_PUBLIC* pub,
32313231
wc_ecc_free(key);
32323232
}
32333233

3234+
TPM2_ForceZero(d, sizeof(d));
3235+
32343236
return rc;
32353237
}
32363238
#endif /* HAVE_ECC */

0 commit comments

Comments
 (0)