]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
multi: remove careful bounds check as coverity says it is not needed
authorStefan Eissing <stefan@eissing.org>
Mon, 30 Jun 2025 07:24:13 +0000 (09:24 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 30 Jun 2025 11:46:06 +0000 (13:46 +0200)
And we all hope that future code changes will not make it necessary
again or this will all be blamed on you, coverity!

Closes #17784

lib/multi.c

index 2dc63852d370fbe6837c86b4b3e2589d9614670c..86afc600163001b60dabe96f0959d30e5688f968 100644 (file)
@@ -370,8 +370,7 @@ static CURLMcode multi_xfers_add(struct Curl_multi *multi,
       else {
          /* make it a 64 multiple, since our bitsets frow by that and
           * small (easy_multi) grows to at least 64 on first resize. */
-        new_size = CURLMIN((((used + min_unused) + 63) / 64) * 64,
-                           max_capacity);
+        new_size = (((used + min_unused) + 63) / 64) * 64;
       }
     }
   }