aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-12-03 22:00:20 +0000
committerRoger Dingledine <arma@torproject.org>2003-12-03 22:00:20 +0000
commit727a260a81f7313d391fc95bebf21bcf745d5294 (patch)
treed83d006fef1222862cc6268cd5232b9ece77a3e4 /src
parent4d9eabfed9e739bb4e36a01f63829f9e75f277b6 (diff)
downloadtor-727a260a81f7313d391fc95bebf21bcf745d5294.tar
tor-727a260a81f7313d391fc95bebf21bcf745d5294.tar.gz
prevent assert failure on -HUP when options->PidFile==NULL
svn:r885
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 36eed8653..a5da0166b 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -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);
}