Skip to content

Commit 7c896b2

Browse files
committed
Secure-clear CMAC context on free
1 parent 67939b1 commit 7c896b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp_cmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static void wp_cmac_free(wp_CmacCtx* macCtx)
9191
{
9292
if (macCtx != NULL) {
9393
OPENSSL_cleanse(macCtx->key, macCtx->keyLen);
94-
OPENSSL_free(macCtx);
94+
OPENSSL_clear_free(macCtx, sizeof(*macCtx));
9595
}
9696
}
9797

0 commit comments

Comments
 (0)