forked from espressif/esp-idf
Set success when closing socket
Closes https://github.com/espressif/esp-idf/pull/8337 Closes IDFGH-6709
This commit is contained in:
committed by
Mahavir Jain
parent
14b52e9d83
commit
9e892fbf46
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user