mirror of
https://github.com/curl/curl.git
synced 2026-05-30 06:57:28 +03:00
ldap: fix to initialize cleartext connection on Windows
Regression since curl 8.18.0.
Reported-by: Yoshiro Yoneya
Fixes #20927
Follow-up to 39d1976b7f #19830
Closes #20928
This commit is contained in:
parent
3334fca537
commit
6b0a885611
1 changed files with 1 additions and 2 deletions
|
|
@ -303,9 +303,8 @@ static CURLcode ldap_do(struct Curl_easy *data, bool *done)
|
|||
if(ldap_ssl)
|
||||
server = ldap_sslinit(host, (curl_ldap_num_t)ipquad.remote_port, 1);
|
||||
else
|
||||
#else
|
||||
server = ldap_init(host, (curl_ldap_num_t)ipquad.remote_port);
|
||||
#endif
|
||||
server = ldap_init(host, (curl_ldap_num_t)ipquad.remote_port);
|
||||
if(!server) {
|
||||
failf(data, "LDAP: cannot setup connect to %s:%u",
|
||||
conn->host.dispname, ipquad.remote_port);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue