mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
prevent assert failure on -HUP when options->PidFile==NULL
svn:r885
This commit is contained in:
@@ -292,7 +292,8 @@ int getconfig(int argc, char **argv, or_options_t *options) {
|
||||
argc = backup_argc;
|
||||
|
||||
/* record some previous values, so we can fail if they change */
|
||||
previous_pidfile = tor_strdup(options->PidFile);
|
||||
if(options->PidFile)
|
||||
previous_pidfile = tor_strdup(options->PidFile);
|
||||
previous_runasdaemon = options->RunAsDaemon;
|
||||
free_options(options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user