]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ldap: drop duplicate `ldap_set_option()` on Windows
authorViktor Szakats <commit@vsz.me>
Sun, 15 Mar 2026 16:31:35 +0000 (17:31 +0100)
committerViktor Szakats <commit@vsz.me>
Mon, 16 Mar 2026 12:18:45 +0000 (13:18 +0100)
Already set after `ldap_sslinit()`/`ldap_init()` and before
`ldap_ssl`-specific initialization.

Follow-up to 39d1976b7f709a516e3243338ebc0443bdd8d56d #19830
Follow-up to b41e65a8e3ed8fdafb535328997bedc925f21e37
Follow-up to b91421b10764c4b7450ea29d305cc65c3f828dd1

Closes #20930

lib/ldap.c

index 83f1004810275b958b2c0a2b30cb860006bb975c..09eb47c81bcb1430a9a2c578e2e5f635c379e0cf 100644 (file)
@@ -387,7 +387,6 @@ static CURLcode ldap_do(struct Curl_easy *data, bool *done)
   }
 
 #ifdef USE_WIN32_LDAP
-  ldap_set_option(server, LDAP_OPT_PROTOCOL_VERSION, &ldap_proto);
   rc = ldap_win_bind(data, server, user, passwd);
 #else
   rc = ldap_simple_bind_s(server, user, passwd);