From a8ac6f1dc15056d39668bbed48fa9e7fee5e789a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 23 Jun 2006 22:07:06 +0000 Subject: 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. --- lib/multi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; } } -- cgit v1.2.3