fix(mbedtls/aes-gcm): Fix null pointer derefernce coverity reports

- Also fixed a tcp_transport and https_server report
This commit is contained in:
harshal.patil
2024-03-12 11:54:21 +05:30
parent 4ee54026e3
commit 343a6f47ab
3 changed files with 30 additions and 22 deletions

View File

@@ -327,6 +327,7 @@ static esp_err_t create_secure_context(const struct httpd_ssl_config *config, ht
(*ssl_ctx)->tls_cfg->ecdsa_key_efuse_blk = config->ecdsa_key_efuse_blk;
#else
ESP_LOGE(TAG, "Please enable the support for signing using ECDSA peripheral in menuconfig.");
ret = ESP_ERR_NOT_SUPPORTED;
goto exit;
#endif
} else if (config->prvtkey_pem != NULL && config->prvtkey_len > 0) {