]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_operate: fix `CURLOPT_SOCKS5_GSSAPI_NEC` type
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Wed, 21 Dec 2022 11:31:31 +0000 (12:31 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 21 Dec 2022 14:37:54 +0000 (15:37 +0100)
`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

index 79db063a500297c75d826ab0d8a5d9aecb67ab63..a77bdfb33d822f75e4287b9115b4f813e7adec67 100644 (file)
@@ -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)