mirror of
https://github.com/curl/curl.git
synced 2026-08-09 11:24:16 +03:00
Arve Knudsen found a flaw in curl_multi_fdset() for systems where
curl_socket_t is unsigned (like Windows) that could cause it to wrongly return a max fd of -1.
This commit is contained in:
parent
dfe1884c25
commit
a8ac6f1dc1
3 changed files with 8 additions and 2 deletions
|
|
@ -504,7 +504,7 @@ CURLMcode curl_multi_fdset(CURLM *multi_handle,
|
|||
/* this socket is unused, break out of loop */
|
||||
break;
|
||||
else {
|
||||
if(s > (curl_socket_t)this_max_fd)
|
||||
if((int)s > this_max_fd)
|
||||
this_max_fd = (int)s;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue