]> git.sur5r.net Git - openldap/commitdiff
need attrs when sending entries ...
authorPierangelo Masarati <ando@openldap.org>
Mon, 7 Apr 2003 08:19:26 +0000 (08:19 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 7 Apr 2003 08:19:26 +0000 (08:19 +0000)
servers/slapd/back-monitor/search.c

index dc365de16f4ceeb89617e6334456d537e43b6671..92e46976d544e96f8ce50fc4420d462fecdc582b 100644 (file)
@@ -112,7 +112,10 @@ monitor_send_children(
                rc = test_filter( op, e, op->oq_search.rs_filter );
                if ( rc == LDAP_COMPARE_TRUE ) {
                        rs->sr_entry = e;
+                       rs->sr_attrs = attrs;
                        send_search_entry( op, rs );
+                       rs->sr_entry = NULL;
+                       rs->sr_attrs = NULL;
                }
 
                if ( ( mp->mp_children || MONITOR_HAS_VOLATILE_CH( mp ) )
@@ -171,8 +174,10 @@ monitor_back_search( Operation *op, SlapReply *rs )
                rc = test_filter( op, e, op->oq_search.rs_filter );
                if ( rc == LDAP_COMPARE_TRUE ) {
                        rs->sr_entry = e;
+                       rs->sr_attrs = attrs;
                        send_search_entry( op, rs );
                        rs->sr_entry = NULL;
+                       rs->sr_attrs = NULL;
                }
                rc = LDAP_SUCCESS;
                monitor_cache_release( mi, e );
@@ -191,8 +196,10 @@ monitor_back_search( Operation *op, SlapReply *rs )
                rc = test_filter( op, e, op->oq_search.rs_filter );
                if ( rc == LDAP_COMPARE_TRUE ) {
                        rs->sr_entry = e;
+                       rs->sr_attrs = attrs;
                        send_search_entry( op, rs );
                        rs->sr_entry = NULL;
+                       rs->sr_attrs = NULL;
                }
 
                rc = monitor_send_children( op, rs, e, 1 );