[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] make our tor_assert actually work when it"s going to be tri...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] make our tor_assert actually work when it"s going to be tri...
- From: arma@seul.org (Roger Dingledine)
- Date: Thu, 23 Sep 2004 01:02:53 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Thu, 23 Sep 2004 01:03:13 -0400
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
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);