]> git.sur5r.net Git - openldap/commitdiff
fix new API update
authorPierangelo Masarati <ando@openldap.org>
Thu, 3 Apr 2003 21:24:53 +0000 (21:24 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 3 Apr 2003 21:24:53 +0000 (21:24 +0000)
servers/slapd/back-monitor/search.c

index 0848ac9d291468040f742bae5e4ba5aaaa534c76..dc365de16f4ceeb89617e6334456d537e43b6671 100644 (file)
@@ -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 );