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:
Aditya Patwardhan
2026-04-21 19:57:13 +05:30
@@ -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;