diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-06-23 22:07:06 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-06-23 22:07:06 +0000 |
commit | a8ac6f1dc15056d39668bbed48fa9e7fee5e789a (patch) | |
tree | b196dbcc5992fc044b79868490d3bfbc269cd479 /lib | |
parent | dfe1884c2529d728750d0824f73055627673cd72 (diff) |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/multi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c index 9201402a2..cfb749dfd 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -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; } } |