mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 07:40:49 +02:00
fix SE050 hash msg buffer leak
This commit is contained in:
@@ -344,6 +344,7 @@ int se050_hash_final(SE050_HASH_Context* se050Ctx, byte* hash, size_t digestLen,
|
||||
|
||||
if (status == kStatus_SSS_Success) {
|
||||
/* reset state */
|
||||
XFREE(se050Ctx->msg, se050Ctx->heap, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
ret = se050_hash_init(se050Ctx, se050Ctx->heap);
|
||||
} else {
|
||||
ret = WC_HW_E;
|
||||
|
||||
Reference in New Issue
Block a user