summaryrefslogtreecommitdiff
path: root/lib/ldap.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-10-31 09:37:30 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-10-31 09:37:54 +0100
commit44c53cc38bea66b7612a82fa4c9b68884b9167fa (patch)
tree3744671c0a47eb3a48595a2e7f43b1e3fb22acd0 /lib/ldap.c
parent532491a27cf97678934741809043040431674b86 (diff)
downloadcurl-44c53cc38bea66b7612a82fa4c9b68884b9167fa.tar.gz
strcase: s/strequal/strcasecompare
some more follow-ups to 811a693b80
Diffstat (limited to 'lib/ldap.c')
-rw-r--r--lib/ldap.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/ldap.c b/lib/ldap.c
index 6a8cdf8e7..553c161a0 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -708,16 +708,16 @@ static void _ldap_trace (const char *fmt, ...)
*/
static int str2scope (const char *p)
{
- if(strequal(p, "one"))
- return LDAP_SCOPE_ONELEVEL;
- if(strequal(p, "onetree"))
- return LDAP_SCOPE_ONELEVEL;
- if(strequal(p, "base"))
- return LDAP_SCOPE_BASE;
- if(strequal(p, "sub"))
- return LDAP_SCOPE_SUBTREE;
- if(strequal(p, "subtree"))
- return LDAP_SCOPE_SUBTREE;
+ if(strcasecompare(p, "one"))
+ return LDAP_SCOPE_ONELEVEL;
+ if(strcasecompare(p, "onetree"))
+ return LDAP_SCOPE_ONELEVEL;
+ if(strcasecompare(p, "base"))
+ return LDAP_SCOPE_BASE;
+ if(strcasecompare(p, "sub"))
+ return LDAP_SCOPE_SUBTREE;
+ if(strcasecompare(p, "subtree"))
+ return LDAP_SCOPE_SUBTREE;
return (-1);
}
@@ -776,9 +776,9 @@ static int _ldap_url_parse2(const struct connectdata *conn, LDAPURLDesc *ludp)
size_t i;
if(!conn->data ||
- !conn->data->state.path ||
- conn->data->state.path[0] != '/' ||
- !checkprefix("LDAP", conn->data->change.url))
+ !conn->data->state.path ||
+ conn->data->state.path[0] != '/' ||
+ !checkprefix("LDAP", conn->data->change.url))
return LDAP_INVALID_SYNTAX;
ludp->lud_scope = LDAP_SCOPE_BASE;