From: Marcel Raad Date: Wed, 21 Dec 2022 11:31:31 +0000 (+0100) Subject: tool_operate: fix `CURLOPT_SOCKS5_GSSAPI_NEC` type X-Git-Tag: curl-7_88_0~249 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=03ac7ab4ad9a6f83ffcd70b5a31b8017797c07d8;p=thirdparty%2Fcurl.git 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 --- 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)