Browse Source

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)
Endi S. Dewata 15 years ago
parent
commit
288953655c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ldap/servers/plugins/dna/dna.c

+ 2 - 1
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. */