Commit 1f9c26e6 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

do not return entry pointer in case of failure

parent 0265f31b
......@@ -428,6 +428,7 @@ searchit:
if ( --op->ors_slimit == -1 ) {
cache_return_entry_r( &li->li_cache, e );
rs->sr_err = LDAP_SIZELIMIT_EXCEEDED;
rs->sr_entry = NULL;
send_ldap_result( op, rs );
rc = LDAP_SUCCESS;
goto done;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment