aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldap.c b/lib/ldap.c
index ec9252f56..44cc8e41d 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -582,7 +582,7 @@ static int _ldap_url_parse2 (const struct connectdata *conn, LDAPURLDesc *ludp)
if(!conn->data ||
!conn->data->state.path ||
conn->data->state.path[0] != '/' ||
- !checkprefix(conn->protostr, conn->data->change.url))
+ !checkprefix("LDAP", conn->data->change.url))
return LDAP_INVALID_SYNTAX;
ludp->lud_scope = LDAP_SCOPE_BASE;