summaryrefslogtreecommitdiff
path: root/lib/socks.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-12-13 15:02:00 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-12-14 12:31:01 +0100
commit57d2d9b6bed33dd92a6481b4aee363b42c3bf76b (patch)
tree2381380dcd8ce22576e04afd329b1dfcbd72ab09 /lib/socks.c
parent58f55ba57e630571a5c9d110ce5f94f526fe094f (diff)
downloadcurl-57d2d9b6bed33dd92a6481b4aee363b42c3bf76b.tar.gz
lib: use size_t or int etc instead of longs
Since long is not using a consistent data size in curl builds, making it often "waste" 32 bits. Closes #10088
Diffstat (limited to 'lib/socks.c')
-rw-r--r--lib/socks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/socks.c b/lib/socks.c
index ebce083c6..d1220fa46 100644
--- a/lib/socks.c
+++ b/lib/socks.c
@@ -526,10 +526,11 @@ static CURLproxycode do_SOCKS5(struct Curl_cfilter *cf,
(conn->socks_proxy.proxytype == CURLPROXY_SOCKS5) ? TRUE : FALSE;
const size_t hostname_len = strlen(sx->hostname);
ssize_t len = 0;
- const unsigned long auth = data->set.socks5auth;
+ const unsigned char auth = data->set.socks5auth;
bool allow_gssapi = FALSE;
struct Curl_dns_entry *dns = NULL;
+ DEBUGASSERT(auth & (CURLAUTH_BASIC | CURLAUTH_GSSAPI));
switch(sx->state) {
case CONNECT_SOCKS_INIT:
if(conn->bits.httpproxy)