Skip to content
Snippets Groups Projects
Commit d7cd7610 authored by Yang Tse's avatar Yang Tse
Browse files

Oops, should have removed 'not' in previous commit.

parent 05488d63
No related branches found
No related tags found
No related merge requests found
......@@ -488,15 +488,15 @@ static void _ldap_trace (const char *fmt, ...)
*/
static int str2scope (const char *p)
{
if(!strequal(p, "one"))
if(strequal(p, "one"))
return LDAP_SCOPE_ONELEVEL;
if(!strequal(p, "onetree"))
if(strequal(p, "onetree"))
return LDAP_SCOPE_ONELEVEL;
if(!strequal(p, "base"))
if(strequal(p, "base"))
return LDAP_SCOPE_BASE;
if(!strequal(p, "sub"))
if(strequal(p, "sub"))
return LDAP_SCOPE_SUBTREE;
if(!strequal( p, "subtree"))
if(strequal( p, "subtree"))
return LDAP_SCOPE_SUBTREE;
return (-1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment