mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-11 00:24:34 +02:00
protocomm: Fix debug print on encrypting failure
Closes https://github.com/espressif/esp-idf/pull/8526
This commit is contained in:
committed by
Mahavir Jain
parent
4196c3f591
commit
c000673540
@@ -240,7 +240,7 @@ esp_err_t protocomm_req_handle(protocomm_t *pc, const char *ep_name, uint32_t se
|
||||
/* Encrypt response to be sent back */
|
||||
uint8_t *enc_resp = (uint8_t *) malloc(plaintext_resp_len);
|
||||
if (!enc_resp) {
|
||||
ESP_LOGE(TAG, "Failed to allocate decrypt buf len %d", inlen);
|
||||
ESP_LOGE(TAG, "Failed to allocate encrypt buf len %d", plaintext_resp_len);
|
||||
free(plaintext_resp);
|
||||
return ESP_ERR_NO_MEM;
|
||||
}
|
||||
|
Reference in New Issue
Block a user