Skip to content
Snippets Groups Projects
Commit 34c772e2 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

ITS#6933 Add missing strdup of lutil_getRegParam()

parent 93c54fd1
No related branches found
No related tags found
No related merge requests found
......@@ -447,13 +447,13 @@ int main( int argc, char **argv )
newConfigFile = (char*)lutil_getRegParam( regService, "ConfigFile" );
if ( newConfigFile != NULL ) {
configfile = newConfigFile;
configfile = ch_strdup(newConfigFile);
Debug ( LDAP_DEBUG_ANY, "new config file from registry is: %s\n", configfile, 0, 0 );
}
newConfigDir = (char*)lutil_getRegParam( regService, "ConfigDir" );
if ( newConfigDir != NULL ) {
configdir = newConfigDir;
configdir = ch_strdup(newConfigDir);
Debug ( LDAP_DEBUG_ANY, "new config dir from registry is: %s\n", configdir, 0, 0 );
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment