From: Howard Chu Date: Sat, 11 Nov 2006 23:38:01 +0000 (+0000) Subject: Tweak prev commit, use LDAP_UNAVAILABLE to force early termination X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~487 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4df4d4f46cbd1b25b7d47f35e4ed54eea58b071c;p=openldap Tweak prev commit, use LDAP_UNAVAILABLE to force early termination --- diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index 60f1879fca..66bd6a6bae 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -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