ldap/servers/plugins/dna/dna.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 341664fad1fbb0b5bebb31496d862cb02df843dd
Author: Endi S. Dewata <edewata(a)redhat.com>
Date: Sun Apr 18 04:29:41 2010 -0500
Bug 584109 - Slapd crashes while parsing DNA configuration
https://bugzilla.redhat.com/show_bug.cgi?id=584109
Resolves: bug 584109
Bug Description: Slapd crashes while parsing DNA configuration
Fix Description: The dna_parse_config_entry() has been modified to duplicate
the shared_cfg_base value to avoid freeing the same memory location twice.
Reviewed by: rmeggins (and pushed by)
(cherry picked from commit 288953655c3af087c82007d630cf8fb6558e9a9e)
diff --git a/ldap/servers/plugins/dna/dna.c b/ldap/servers/plugins/dna/dna.c
index 684d46d..9b6e021 100644
--- a/ldap/servers/plugins/dna/dna.c
+++ b/ldap/servers/plugins/dna/dna.c
@@ -840,7 +840,8 @@ dna_parse_config_entry(Slapi_Entry * e, int apply)
shared_e = NULL;
}
- entry->shared_cfg_base = slapi_dn_normalize(value);
+ entry->shared_cfg_base = slapi_ch_strdup(value);
+ slapi_dn_normalize(entry->shared_cfg_base);
/* We prepend the host & port of this instance as a
* multi-part RDN for the shared config entry. */