protocomm: Fix debug print on encrypting failure

Closes https://github.com/espressif/esp-idf/pull/8526
This commit is contained in:
lorenzo.consolaro
2022-03-08 14:47:51 +01:00
committed by Mahavir Jain
parent 4196c3f591
commit c000673540

View File

@@ -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;
}