[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] prevent assert failure on -HUP when options->PidFile==NULL



Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	config.c 
Log Message:
prevent assert failure on -HUP when options->PidFile==NULL


Index: config.c
===================================================================
RCS file: /home/or/cvsroot/src/or/config.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -d -r1.72 -r1.73
--- config.c	20 Nov 2003 17:49:44 -0000	1.72
+++ config.c	3 Dec 2003 22:00:20 -0000	1.73
@@ -292,7 +292,8 @@
     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);
   }