Commit e6e83a5d authored by Deucе's avatar Deucе 👌🏾
Browse files

Properly set buffer size when calling getsockopt()

parent c53a903d
......@@ -569,6 +569,7 @@ int nonblocking_connect(SOCKET sock, struct sockaddr* addr, size_t size, unsigne
result = 0;
else {
optlen = sizeof(result);
if(getsockopt(sock, SOL_SOCKET, SO_ERROR, (void*)&result, &optlen)==SOCKET_ERROR)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment