]> git.sur5r.net Git - openldap/commitdiff
Tweak prev commit, use LDAP_UNAVAILABLE to force early termination
authorHoward Chu <hyc@openldap.org>
Sat, 11 Nov 2006 23:38:01 +0000 (23:38 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 11 Nov 2006 23:38:01 +0000 (23:38 +0000)
servers/slapd/saslauthz.c

index 60f1879fcae60316a75832b5a076408e2e1548ff..66bd6a6bae13ba06d1f3a639e8f745eee467d72d 100644 (file)
@@ -1627,10 +1627,10 @@ static int sasl_sc_smatch( Operation *o, SlapReply *rs )
 
        if (dn_match(sm->dn, &rs->sr_entry->e_nname)) {
                sm->match = 1;
-               return -1;      /* short-circuit the search */
+               return LDAP_UNAVAILABLE;        /* short-circuit the search */
        }
 
-       return 1;
+       return 0;
 }
 
 int