Tweak prev commit, use LDAP_UNAVAILABLE to force early termination

This commit is contained in:
Howard Chu 2006-11-11 23:38:01 +00:00
parent 161574b00d
commit 4df4d4f46c

View 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