diff --git a/components/wpa_supplicant/esp_supplicant/src/crypto/crypto_mbedtls.c b/components/wpa_supplicant/esp_supplicant/src/crypto/crypto_mbedtls.c index 12cdf1daaa2..1d2c6f38899 100644 --- a/components/wpa_supplicant/esp_supplicant/src/crypto/crypto_mbedtls.c +++ b/components/wpa_supplicant/esp_supplicant/src/crypto/crypto_mbedtls.c @@ -702,7 +702,7 @@ struct crypto_cipher *crypto_cipher_init(enum crypto_cipher_alg alg, psa_status_t status; psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; - psa_key_id_t key_id; + psa_key_id_t key_id = 0; psa_cipher_operation_t *enc_operation = NULL; psa_cipher_operation_t *dec_operation = NULL;