]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
setopt: make protocol2num use a curl_off_t for the protocol bit
authorDaniel Stenberg <daniel@haxx.se>
Sun, 11 Sep 2022 22:02:07 +0000 (00:02 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 12 Sep 2022 06:35:51 +0000 (08:35 +0200)
... since WSS does not fit within 32 bit.

Bug: https://github.com/curl/curl/pull/9467#issuecomment-1243014887
Closes #9476

lib/setopt.c

index bfc7176437db3f475146e75dcb31b6944578fed3..a84ae4fa47ea2be4bec6f1ec2f5d6afaa0541ffd 100644 (file)
@@ -153,7 +153,7 @@ static CURLcode protocol2num(char *str, curl_off_t *val)
   bool found_comma = FALSE;
   static struct scheme {
     const char *name;
-    long bit;
+    curl_off_t bit;
   } const protos[] = {
     { "dict", CURLPROTO_DICT },
     { "file", CURLPROTO_FILE },