mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
Merge branch 'fix/mbedtls-psa-hmac-opaque-abort-null-deref' into 'master'
fix(mbedtls): correct inverted NULL check in esp_hmac_abort_opaque See merge request espressif/esp-idf!47565
This commit is contained in:
@@ -64,7 +64,7 @@ psa_status_t esp_hmac_import_key_opaque(
|
|||||||
|
|
||||||
psa_status_t esp_hmac_abort_opaque(esp_hmac_opaque_operation_t *esp_hmac_ctx)
|
psa_status_t esp_hmac_abort_opaque(esp_hmac_opaque_operation_t *esp_hmac_ctx)
|
||||||
{
|
{
|
||||||
if (!esp_hmac_ctx) {
|
if (esp_hmac_ctx != NULL) {
|
||||||
mbedtls_platform_zeroize(esp_hmac_ctx, sizeof(esp_hmac_opaque_operation_t));
|
mbedtls_platform_zeroize(esp_hmac_ctx, sizeof(esp_hmac_opaque_operation_t));
|
||||||
}
|
}
|
||||||
return PSA_SUCCESS;
|
return PSA_SUCCESS;
|
||||||
|
|||||||
Reference in New Issue
Block a user