From 1f400adca7af85e736a614b83461482188d02932 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 15 Apr 2003 22:43:56 +0000 Subject: [PATCH] honor attributes request --- servers/slapd/back-sql/other.c | 8 ++++---- servers/slapd/back-sql/search.c | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/servers/slapd/back-sql/other.c b/servers/slapd/back-sql/other.c index 8cd14269d8..5e53fd5f1d 100644 --- a/servers/slapd/back-sql/other.c +++ b/servers/slapd/back-sql/other.c @@ -152,15 +152,15 @@ backsql_operational( break; default: - Debug(LDAP_DEBUG_TRACE, - "backsql_operational(): " - "has_children failed( %d)\n", - rc, 0, 0 ); + Debug( LDAP_DEBUG_TRACE, "backsql_operational(): " + "has_children failed( %d)\n", rc, 0, 0 ); rc = 1; break; } } + Debug( LDAP_DEBUG_TRACE, "<==backsql_operational()\n", 0, 0, 0); + return rc; } diff --git a/servers/slapd/back-sql/search.c b/servers/slapd/back-sql/search.c index 1ee14746b8..d235f8f995 100644 --- a/servers/slapd/back-sql/search.c +++ b/servers/slapd/back-sql/search.c @@ -1268,8 +1268,11 @@ backsql_search( Operation *op, SlapReply *rs ) sres = 0; } else { #endif + rs->sr_attrs = op->oq_search.rs_attrs; rs->sr_entry = entry; sres = send_search_entry( op, rs ); + rs->sr_entry = NULL; + rs->sr_attrs = NULL; #if 0 } #endif -- 2.39.5