]> git.sur5r.net Git - openldap/commitdiff
propagate search result (maybe this is not what bdb_psearch() is intended to do...)
authorPierangelo Masarati <ando@openldap.org>
Mon, 28 Jun 2004 21:08:32 +0000 (21:08 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 28 Jun 2004 21:08:32 +0000 (21:08 +0000)
servers/slapd/back-bdb/search.c

index de9c7b1772503164b7dadc17b1d33ca7d5f73b7e..75ab32b2d49812dbfa5404c1acba6939232b304d 100644 (file)
@@ -364,9 +364,13 @@ int bdb_search( Operation *op, SlapReply *rs )
 int bdb_psearch( Operation *op, SlapReply *rs, Operation *sop,
        Entry *ps_e, int ps_type )
 {
+       int     rc;
+
        sop->o_private = op->o_private;
-       bdb_do_search( op, rs, sop, ps_e, ps_type );
+       rc = bdb_do_search( op, rs, sop, ps_e, ps_type );
        sop->o_private = NULL;
+
+       return rc;
 }
 
 /* For persistent searches, op is the currently executing operation,