summaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-11-18 13:17:06 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-11-18 23:54:38 +0100
commitc7cd781a63c91b8e8496ae8581bf2db40934f863 (patch)
tree56f0735f834b8852f900836a2095a6fc8271a9d2 /lib/setopt.c
parent18383fbf72b31b9ae58f17df8e75158a818c31eb (diff)
downloadcurl-c7cd781a63c91b8e8496ae8581bf2db40934f863.tar.gz
urldata: change port num storage to int and unsigned short
Instead of long. Closes #9946
Diffstat (limited to 'lib/setopt.c')
-rw-r--r--lib/setopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setopt.c b/lib/setopt.c
index d53131a0e..a12526176 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -1057,7 +1057,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
arg = va_arg(param, long);
if((arg < 0) || (arg > 65535))
return CURLE_BAD_FUNCTION_ARGUMENT;
- data->set.proxyport = arg;
+ data->set.proxyport = (unsigned short)arg;
break;
case CURLOPT_PROXYAUTH: