mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
clean up search limits enforcement
This commit is contained in:
parent
8e3fba7e1e
commit
0c49718e82
@ -401,8 +401,12 @@ do_search(
|
||||
#endif /* LDAP_SLAPI */
|
||||
|
||||
/* actually do the search and send the result(s) */
|
||||
if ( op->o_bd->be_search && limits_check( op, rs ) == 0 ) {
|
||||
(op->o_bd->be_search)( op, rs );
|
||||
if ( op->o_bd->be_search ) {
|
||||
if ( limits_check( op, rs ) == 0 ) {
|
||||
(op->o_bd->be_search)( op, rs );
|
||||
}
|
||||
/* else limits_check() sends error */
|
||||
|
||||
} else {
|
||||
send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
|
||||
"operation not supported within namingContext" );
|
||||
|
Loading…
Reference in New Issue
Block a user