mirror of
https://github.com/curl/curl.git
synced 2026-08-24 19:43:41 +03:00
fix compiler warning
This commit is contained in:
parent
502da27d65
commit
a8ae8087c4
2 changed files with 4 additions and 2 deletions
|
|
@ -392,7 +392,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
|
|||
long timeout;
|
||||
bool socks5_resolve_local = (bool)(data->set.proxytype == CURLPROXY_SOCKS5);
|
||||
const size_t hostname_len = strlen(hostname);
|
||||
int packetsize = 0;
|
||||
ssize_t packetsize = 0;
|
||||
|
||||
/* RFC1928 chapter 5 specifies max 255 chars for domain name in packet */
|
||||
if(!socks5_resolve_local && hostname_len > 255)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue