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

Properly set buffer size when calling getsockopt()

parent c53a903d
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -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