Minor update TLS client tools

This commit is contained in:
Zhi Guan
2024-02-05 18:14:34 +08:00
parent 9f2bfb5ad0
commit 24783e56ed
4 changed files with 41 additions and 19 deletions

View File

@@ -47,6 +47,7 @@ int tls_socket_create(tls_socket_t *sock, int af, int type, int protocol)
error_print();
return -1;
}
// INVALID_SOCKET == -1
if ((*sock = socket(af, type, protocol)) == INVALID_SOCKET) {
fprintf(stderr, "%s %d: socket error: %d\n", __FILE__, __LINE__, WSAGetLastError());
error_print();