From 7d5087e8c2cf4c2ab5e4ae0e5cebd0e2cf80d870 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 3 Apr 2003 21:24:53 +0000 Subject: [PATCH] fix new API update --- servers/slapd/back-monitor/search.c | 3 +++ 1 file changed, 3 insertions(+) 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 ); -- 2.39.5