Set success when closing socket

Closes https://github.com/espressif/esp-idf/pull/8337
Closes IDFGH-6709
This commit is contained in:
Dániel Buga 2022-02-02 14:36:01 +01:00 committed by Mahavir Jain
parent e6c0d1e481
commit 2ffa82a397

View File

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