mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#6933 Add missing strdup of lutil_getRegParam()
This commit is contained in:
parent
93c54fd158
commit
34c772e28d
@ -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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user