]> git.sur5r.net Git - openldap/commitdiff
honor attributes request
authorPierangelo Masarati <ando@openldap.org>
Tue, 15 Apr 2003 22:43:56 +0000 (22:43 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 15 Apr 2003 22:43:56 +0000 (22:43 +0000)
servers/slapd/back-sql/other.c
servers/slapd/back-sql/search.c

index 8cd14269d8f86cb248279cf26f6a460a6237df68..5e53fd5f1d28efbfb2bbd423cc17e2b5d0ee8245 100644 (file)
@@ -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;
 }
 
index 1ee14746b8ee6ea0bbdd15fe84de52aff9b15e46..d235f8f995a3cedf0b5b9644526a5727c7227b4d 100644 (file)
@@ -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