Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
34c772e2
Commit
34c772e2
authored
May 08, 2011
by
Hallvard Furuseth
Browse files
ITS#6933 Add missing strdup of lutil_getRegParam()
parent
93c54fd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/main.c
View file @
34c772e2
...
...
@@ -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
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment