[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
cleanup callback and entry free in slap_send_search_entry()
- To: openldap-devel@OpenLDAP.org
- Subject: cleanup callback and entry free in slap_send_search_entry()
- From: "Pierangelo Masarati" <ando@sys-net.it>
- Date: Tue, 13 Jul 2004 17:55:22 +0200 (CEST)
- Importance: Normal
- User-agent: SquirrelMail/1.4.3a-1
I've run into a problem while hacking operational attributes collection
in slap_send_search_entry() when the "rwm" overlay is stacked.
For bdb/hdb, the be_operational() handler requires the entry to have
an appropriate e_private field, but rwm makes a copy. I could
add the original e_private value to the copy, for that purpose,
and clean it up before entry_free(), but unfortunately entry_free(),
if required, is called before the stack of cleanup callbacks is
invoked. If there's no drawbacks, I'd move cleanup callbacks invocation
before conditional SlapReply cleanup, so that specialized cleanup
can occur before the default catchall is run. This seems to be
more logical as well.
p.
--
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it
SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497