diff options
Diffstat (limited to 'ldap/servers/slapd/fedse.c')
-rw-r--r-- | ldap/servers/slapd/fedse.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ldap/servers/slapd/fedse.c b/ldap/servers/slapd/fedse.c index 2b30760f..f636a530 100644 --- a/ldap/servers/slapd/fedse.c +++ b/ldap/servers/slapd/fedse.c @@ -1841,8 +1841,7 @@ int fedse_create_startOK(char *filename, char *startokfilename, const char *con int rc = -1; if (configdir!=NULL) { - realconfigdir = slapi_ch_malloc(strlen(configdir)+1); - strcpy(realconfigdir, configdir); + realconfigdir = slapi_ch_strdup(configdir); } else if (id!=NULL) { realconfigdir = slapi_ch_smprintf("%s/%s", id, config_sub_dir); } |