https://bugzilla.redhat.com/show_bug.cgi?id=548535
Files:
ldap/servers/slapd/back-ldbm/dblayer.c
ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c
ldap/servers/slapd/back-ldbm/proto-back-ldbm.h
Description:
The attrcrypt module maintains the inst_attrcrypt_state_private
field in the instance structure (ldbm_instance) to store the private
keys. The area and the space for the private keys are allocated in
attrcrypt_init which is called from dblayer_instance_start.
A backend instance could be closed and restarted multiple times
(for instance, in the bulk_import, which is used by the replica
initialization), but the area had no chance to be freed.
This patch is adding the clean-up code.
[Proposed patch]
--> (
https://bugzilla.redhat.com/attachment.cgi?id=389229)
git patch file