Skip to content
Snippets Groups Projects
Commit 0c49718e authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

clean up search limits enforcement

parent 8e3fba7e
No related branches found
No related tags found
Loading
......@@ -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" );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment