diff options
author | dartraiden <wowemuh@gmail.com> | 2025-06-04 10:22:08 +0300 |
---|---|---|
committer | dartraiden <wowemuh@gmail.com> | 2025-06-04 10:27:15 +0300 |
commit | b14c227e81e60d9d87b6a56074d47f8b92727db8 (patch) | |
tree | 55d8efd8f7d593a520c01c918fdfd0f81e8605ca /libs/libcurl/src/multi.c | |
parent | 114ca3aa13683f413d2297e675741f54b87dd151 (diff) |
libcurl: update to 8.14.1
Diffstat (limited to 'libs/libcurl/src/multi.c')
-rw-r--r-- | libs/libcurl/src/multi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/libcurl/src/multi.c b/libs/libcurl/src/multi.c index 942331df87..d325e92f38 100644 --- a/libs/libcurl/src/multi.c +++ b/libs/libcurl/src/multi.c @@ -347,7 +347,8 @@ static CURLMcode multi_xfers_add(struct Curl_multi *multi, if(unused <= min_unused) {
/* make it a 64 multiple, since our bitsets frow by that and
* small (easy_multi) grows to at least 64 on first resize. */
- unsigned int newsize = ((capacity + min_unused) + 63) / 64;
+ unsigned int newsize = (((capacity + min_unused) + 63) / 64) * 64;
+ DEBUGASSERT(newsize > capacity);
/* Grow the bitsets first. Should one fail, we do not need
* to downsize the already resized ones. The sets continue
* to work properly when larger than the table, but not
@@ -3181,7 +3182,7 @@ static CURLMcode multi_timeout(struct Curl_multi *multi, /* splay the lowest to the bottom */
multi->timetree = Curl_splay(tv_zero, multi->timetree);
- /* this will not return NULL from a non-emtpy tree, but some compilers
+ /* this will not return NULL from a non-empty tree, but some compilers
* are not convinced of that. Analyzers are hard. */
*expire_time = multi->timetree ? multi->timetree->key : tv_zero;
|