summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-04-18 04:29:41 -0500
committerRich Megginson <rmeggins@redhat.com>2010-04-20 13:33:26 -0600
commit288953655c3af087c82007d630cf8fb6558e9a9e (patch)
treeabef2a19c4911d1c14f5d07953756fa3b35324d0
parentacf2c6b2f29de7c03763c278ee7f400b1fac44f7 (diff)
downloadds-288953655c3af087c82007d630cf8fb6558e9a9e.tar.gz
ds-288953655c3af087c82007d630cf8fb6558e9a9e.tar.xz
ds-288953655c3af087c82007d630cf8fb6558e9a9e.zip
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)
-rw-r--r--ldap/servers/plugins/dna/dna.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldap/servers/plugins/dna/dna.c b/ldap/servers/plugins/dna/dna.c
index 0da8f07c..b8922d9d 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. */