[or-cvs] make our tor_assert actually work when it"s going to be tri...

Roger Dingledine arma at seul.org
Thu Sep 23 05:02:53 UTC 2004


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

Modified Files:
	log.c 
Log Message:
make our tor_assert actually work when it's going to be triggered,
rather than seg fault


Index: log.c
===================================================================
RCS file: /home/or/cvsroot/src/common/log.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- log.c	23 Sep 2004 04:59:02 -0000	1.52
+++ log.c	23 Sep 2004 05:02:51 -0000	1.53
@@ -233,7 +233,7 @@
     logfiles = victim->next;
   else {
     for(tmpl = logfiles; tmpl && tmpl->next != victim; tmpl=tmpl->next) ;
-    tor_assert(tmpl->next == victim);
+    tor_assert(tmpl && tmpl->next == victim);
     tmpl->next = victim->next;
   }
   tor_free(victim->filename);



More information about the tor-commits mailing list