From: Pierangelo Masarati Date: Mon, 28 Jun 2004 21:08:32 +0000 (+0000) Subject: propagate search result (maybe this is not what bdb_psearch() is intended to do...) X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~164 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a7a90609a9a8aa165e13578f6f9d915a31471889;p=openldap propagate search result (maybe this is not what bdb_psearch() is intended to do...) --- diff --git a/servers/slapd/back-bdb/search.c b/servers/slapd/back-bdb/search.c index de9c7b1772..75ab32b2d4 100644 --- a/servers/slapd/back-bdb/search.c +++ b/servers/slapd/back-bdb/search.c @@ -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,