Loading lib/socks.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -392,7 +392,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name, long timeout; long timeout; bool socks5_resolve_local = (bool)(data->set.proxytype == CURLPROXY_SOCKS5); bool socks5_resolve_local = (bool)(data->set.proxytype == CURLPROXY_SOCKS5); const size_t hostname_len = strlen(hostname); 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 */ /* RFC1928 chapter 5 specifies max 255 chars for domain name in packet */ if(!socks5_resolve_local && hostname_len > 255) if(!socks5_resolve_local && hostname_len > 255) Loading src/main.c +3 −1 Original line number Original line Diff line number Diff line Loading @@ -1466,7 +1466,9 @@ static int sockoptcallback(void *clientp, curl_socket_t curlfd, struct Configurable *config = (struct Configurable *)clientp; struct Configurable *config = (struct Configurable *)clientp; int onoff = 1; /* this callback is only used if we ask for keepalives on the int onoff = 1; /* this callback is only used if we ask for keepalives on the connection */ connection */ long keepidle = config->alivetime; #if defined(TCP_KEEPIDLE) || defined(TCP_KEEPINTVL) int keepidle = (int)config->alivetime; #endif switch (purpose) { switch (purpose) { case CURLSOCKTYPE_IPCXN: case CURLSOCKTYPE_IPCXN: Loading Loading
lib/socks.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -392,7 +392,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name, long timeout; long timeout; bool socks5_resolve_local = (bool)(data->set.proxytype == CURLPROXY_SOCKS5); bool socks5_resolve_local = (bool)(data->set.proxytype == CURLPROXY_SOCKS5); const size_t hostname_len = strlen(hostname); 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 */ /* RFC1928 chapter 5 specifies max 255 chars for domain name in packet */ if(!socks5_resolve_local && hostname_len > 255) if(!socks5_resolve_local && hostname_len > 255) Loading
src/main.c +3 −1 Original line number Original line Diff line number Diff line Loading @@ -1466,7 +1466,9 @@ static int sockoptcallback(void *clientp, curl_socket_t curlfd, struct Configurable *config = (struct Configurable *)clientp; struct Configurable *config = (struct Configurable *)clientp; int onoff = 1; /* this callback is only used if we ask for keepalives on the int onoff = 1; /* this callback is only used if we ask for keepalives on the connection */ connection */ long keepidle = config->alivetime; #if defined(TCP_KEEPIDLE) || defined(TCP_KEEPINTVL) int keepidle = (int)config->alivetime; #endif switch (purpose) { switch (purpose) { case CURLSOCKTYPE_IPCXN: case CURLSOCKTYPE_IPCXN: Loading