From 2ffa82a3973f37e59e9552188003712872575efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Wed, 2 Feb 2022 14:36:01 +0100 Subject: [PATCH] Set success when closing socket Closes https://github.com/espressif/esp-idf/pull/8337 Closes IDFGH-6709 --- components/tcp_transport/transport_ssl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/tcp_transport/transport_ssl.c b/components/tcp_transport/transport_ssl.c index 988995ce56..6a665735b0 100644 --- a/components/tcp_transport/transport_ssl.c +++ b/components/tcp_transport/transport_ssl.c @@ -289,6 +289,7 @@ static int base_close(esp_transport_handle_t t) } else if (ssl && ssl->sockfd >= 0) { close(ssl->sockfd); ssl->sockfd = INVALID_SOCKET; + ret = 0; } return ret; }