From c000673540416965bdfba92ce092bab924fc4740 Mon Sep 17 00:00:00 2001 From: "lorenzo.consolaro" Date: Tue, 8 Mar 2022 14:47:51 +0100 Subject: [PATCH] protocomm: Fix debug print on encrypting failure Closes https://github.com/espressif/esp-idf/pull/8526 --- components/protocomm/src/common/protocomm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/protocomm/src/common/protocomm.c b/components/protocomm/src/common/protocomm.c index cdfd8d7965..f505ba2dee 100644 --- a/components/protocomm/src/common/protocomm.c +++ b/components/protocomm/src/common/protocomm.c @@ -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; }