mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 14:10:39 -05:00
candidate check using new macro from Kurt
This commit is contained in:
parent
773b1907d2
commit
8a3768276a
1 changed files with 1 additions and 5 deletions
|
|
@ -233,11 +233,7 @@ bdb_search(
|
|||
|
||||
/* if not root and candidates exceed to-be-checked entries, abort */
|
||||
if ( !isroot && limit->lms_s_unchecked != -1 ) {
|
||||
unsigned long n =
|
||||
1 + (BDB_IDL_IS_RANGE( candidates ) ? candidates[ 2 ] :
|
||||
candidates[ candidates[ 0 ] ])-candidates[ 1 ];
|
||||
|
||||
if ( n > limit->lms_s_unchecked ) {
|
||||
if ( BDB_IDL_N(candidates) > limit->lms_s_unchecked ) {
|
||||
send_search_result( conn, op,
|
||||
LDAP_UNWILLING_TO_PERFORM,
|
||||
NULL, NULL, NULL, NULL, 0 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue