mirror of
https://github.com/curl/curl.git
synced 2026-08-26 19:13:33 +03:00
urldata: change port num storage to int and unsigned short
Instead of long. Closes #9946
This commit is contained in:
parent
18383fbf72
commit
c7cd781a63
2 changed files with 5 additions and 5 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue