mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
Reversed the 'HAVE_LDAP_URL_PARSE' ifdef statement.
This commit is contained in:
parent
381e372939
commit
d38891c950
@ -133,10 +133,10 @@ CURLcode Curl_ldap(struct connectdata *conn, bool *done)
|
|||||||
LDAP_VENDOR_NAME, LDAP_VENDOR_VERSION);
|
LDAP_VENDOR_NAME, LDAP_VENDOR_VERSION);
|
||||||
infof(data, "LDAP local: %s\n", data->change.url);
|
infof(data, "LDAP local: %s\n", data->change.url);
|
||||||
|
|
||||||
#ifndef HAVE_LDAP_URL_PARSE
|
#ifdef HAVE_LDAP_URL_PARSE
|
||||||
rc = _ldap_url_parse(conn, &ludp);
|
|
||||||
#else
|
|
||||||
rc = ldap_url_parse(data->change.url, &ludp);
|
rc = ldap_url_parse(data->change.url, &ludp);
|
||||||
|
#else
|
||||||
|
rc = _ldap_url_parse(conn, &ludp);
|
||||||
#endif
|
#endif
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
failf(data, "LDAP local: %s", ldap_err2string(rc));
|
failf(data, "LDAP local: %s", ldap_err2string(rc));
|
||||||
@ -622,5 +622,5 @@ static void _ldap_free_urldesc (LDAPURLDesc *ludp)
|
|||||||
}
|
}
|
||||||
free (ludp);
|
free (ludp);
|
||||||
}
|
}
|
||||||
#endif /* HAVE_LDAP_URL_PARSE */
|
#endif /* !HAVE_LDAP_URL_PARSE */
|
||||||
#endif /* CURL_DISABLE_LDAP */
|
#endif /* CURL_DISABLE_LDAP */
|
||||||
|
Loading…
Reference in New Issue
Block a user