Skip to content
Snippets Groups Projects
Commit b404a77c authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Properly set buffer size when calling getsockopt()

parent e3ad4e13
No related branches found
No related tags found
No related merge requests found
......@@ -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)
result=ERROR_VALUE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment