aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2007-08-22 18:05:46 +0000
committerGisle Vanem <gvanem@broadpark.no>2007-08-22 18:05:46 +0000
commitd38891c9500216c5c69d1d0aa7c725f1de449ddf (patch)
tree9aa6d54eccdba47a65c166b996391f87bd6a7395
parent381e372939d72bb572c545b18bf050fd4fbca5b5 (diff)
Reversed the 'HAVE_LDAP_URL_PARSE' ifdef statement.
-rw-r--r--lib/ldap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ldap.c b/lib/ldap.c
index 20d288871..6b6e17abb 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -133,10 +133,10 @@ CURLcode Curl_ldap(struct connectdata *conn, bool *done)
LDAP_VENDOR_NAME, LDAP_VENDOR_VERSION);
infof(data, "LDAP local: %s\n", data->change.url);
-#ifndef HAVE_LDAP_URL_PARSE
- rc = _ldap_url_parse(conn, &ludp);
-#else
+#ifdef HAVE_LDAP_URL_PARSE
rc = ldap_url_parse(data->change.url, &ludp);
+#else
+ rc = _ldap_url_parse(conn, &ludp);
#endif
if (rc != 0) {
failf(data, "LDAP local: %s", ldap_err2string(rc));
@@ -622,5 +622,5 @@ static void _ldap_free_urldesc (LDAPURLDesc *ludp)
}
free (ludp);
}
-#endif /* HAVE_LDAP_URL_PARSE */
+#endif /* !HAVE_LDAP_URL_PARSE */
#endif /* CURL_DISABLE_LDAP */