Леонид Юрьев wrote:
wwctx.txn may be uninitialized, see lines 712-720 of back-mdb/search.c
And therefore mdb_rtxn_snap() may segfault when will called from line 1127.
I think, one of the following should be:
- wwctx should be initialize completely at 712;
- an additional condition should be checked at 1123-1125.
Thanks, you're right. If the current operation doesn't own the transaction
(e.g. search called while evaluating the ACL in some other operation) then it
must leave the transaction alone. Fixed now.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/