From 03ac7ab4ad9a6f83ffcd70b5a31b8017797c07d8 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Wed, 21 Dec 2022 12:31:31 +0100 Subject: [PATCH] tool_operate: fix `CURLOPT_SOCKS5_GSSAPI_NEC` type `CURLOPT_SOCKS5_GSSAPI_NEC` is a long, while `socks5_gssapi_nec` was made a bool in commit 4ac64eadf60. Closes https://github.com/curl/curl/pull/10124 --- src/tool_operate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tool_operate.c b/src/tool_operate.c index 79db063a50..a77bdfb33d 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1939,8 +1939,7 @@ static CURLcode single_transfer(struct GlobalConfig *global, /* new in curl 7.19.4 */ if(config->socks5_gssapi_nec) - my_setopt_str(curl, CURLOPT_SOCKS5_GSSAPI_NEC, - config->socks5_gssapi_nec); + my_setopt_str(curl, CURLOPT_SOCKS5_GSSAPI_NEC, 1L); /* new in curl 7.55.0 */ if(config->socks5_auth) -- 2.47.3