summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2022-12-21 12:31:31 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-12-21 15:37:54 +0100
commit03ac7ab4ad9a6f83ffcd70b5a31b8017797c07d8 (patch)
tree9997c01a1ac089cc9e148827a3003fa7e8afcead /src
parentc12fb3ddaf48e709a7a4deaa55ec485e4df163ee (diff)
downloadcurl-03ac7ab4ad9a6f83ffcd70b5a31b8017797c07d8.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/tool_operate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 79db063a5..a77bdfb33 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)