]> granicus.if.org Git - curl/commitdiff
Oops, should have removed 'not' in previous commit.
authorYang Tse <yangsita@gmail.com>
Wed, 30 Dec 2009 19:43:12 +0000 (19:43 +0000)
committerYang Tse <yangsita@gmail.com>
Wed, 30 Dec 2009 19:43:12 +0000 (19:43 +0000)
lib/ldap.c

index 708d8f828ec0ba51e6370b4ec284bf2b2f0636f9..1b86e5925191fda9a6294511da77702807bd22a4 100644 (file)
@@ -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);
 }