From: Pierangelo Masarati Date: Thu, 3 Apr 2003 21:24:53 +0000 (+0000) Subject: fix new API update X-Git-Tag: AUTOCONF_2_57~101 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7d5087e8c2cf4c2ab5e4ae0e5cebd0e2cf80d870;p=openldap fix new API update --- diff --git a/servers/slapd/back-monitor/search.c b/servers/slapd/back-monitor/search.c index 0848ac9d29..dc365de16f 100644 --- a/servers/slapd/back-monitor/search.c +++ b/servers/slapd/back-monitor/search.c @@ -172,6 +172,7 @@ monitor_back_search( Operation *op, SlapReply *rs ) if ( rc == LDAP_COMPARE_TRUE ) { rs->sr_entry = e; send_search_entry( op, rs ); + rs->sr_entry = NULL; } rc = LDAP_SUCCESS; monitor_cache_release( mi, e ); @@ -189,7 +190,9 @@ monitor_back_search( Operation *op, SlapReply *rs ) monitor_entry_update( mi, e ); rc = test_filter( op, e, op->oq_search.rs_filter ); if ( rc == LDAP_COMPARE_TRUE ) { + rs->sr_entry = e; send_search_entry( op, rs ); + rs->sr_entry = NULL; } rc = monitor_send_children( op, rs, e, 1 );