multi: make max_total_* members size_t

Check size_t conversion on setting these members via CURLMIPT_*. Use
members without casting.

Closes #19618
This commit is contained in:
Stefan Eissing 2025-11-20 10:58:54 +01:00 committed by Daniel Stenberg
parent 047b36d7a6
commit e2be568974
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
7 changed files with 29 additions and 10 deletions

View file

@ -149,11 +149,10 @@ struct Curl_multi {
struct cshutdn cshutdn; /* connection shutdown handling */
struct cpool cpool; /* connection pool (bundles) */
long max_host_connections; /* if >0, a fixed limit of the maximum number
of connections per host */
long max_total_connections; /* if >0, a fixed limit of the maximum number
of connections in total */
size_t max_host_connections; /* if >0, a fixed limit of the maximum number
of connections per host */
size_t max_total_connections; /* if >0, a fixed limit of the maximum number
of connections in total */
/* timer callback and user data pointer for the *socket() API */
curl_multi_timer_callback timer_cb;