mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Set success when closing socket
Closes https://github.com/espressif/esp-idf/pull/8337 Closes IDFGH-6709
This commit is contained in:
parent
e6c0d1e481
commit
2ffa82a397
@ -289,6 +289,7 @@ static int base_close(esp_transport_handle_t t)
|
|||||||
} else if (ssl && ssl->sockfd >= 0) {
|
} else if (ssl && ssl->sockfd >= 0) {
|
||||||
close(ssl->sockfd);
|
close(ssl->sockfd);
|
||||||
ssl->sockfd = INVALID_SOCKET;
|
ssl->sockfd = INVALID_SOCKET;
|
||||||
|
ret = 0;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user