mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-23 14:09:39 +08:00
ITS#9912 slapd: urls comes from optarg, not allocated
May leak on Windows if set in registry. Don't care.
This commit is contained in:
parent
60518dbae0
commit
a6fa0450f6
@ -316,9 +316,6 @@ int main( int argc, char **argv )
|
||||
|
||||
newUrls = (char *) lutil_getRegParam(regService, "Urls");
|
||||
if (newUrls) {
|
||||
if (urls)
|
||||
ch_free(urls);
|
||||
|
||||
urls = ch_strdup(newUrls);
|
||||
Debug(LDAP_DEBUG_ANY, "new urls from registry: %s\n",
|
||||
urls );
|
||||
@ -367,7 +364,6 @@ int main( int argc, char **argv )
|
||||
#endif
|
||||
|
||||
case 'h': /* listen URLs */
|
||||
if ( urls != NULL ) free( urls );
|
||||
urls = optarg;
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user