[or-cvs] fail more gracefully next time
Roger Dingledine
arma at seul.org
Tue Nov 23 09:01:39 UTC 2004
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
rephist.c
Log Message:
fail more gracefully next time
Index: rephist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/rephist.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- rephist.c 21 Nov 2004 05:14:46 -0000 1.41
+++ rephist.c 23 Nov 2004 09:01:37 -0000 1.42
@@ -588,6 +588,7 @@
cp = buf;
for (r=0;r<2;++r) {
b = r?read_array:write_array;
+ tor_assert(b);
format_iso_time(t, b->next_period-NUM_SECS_BW_SUM_INTERVAL);
tor_snprintf(cp, len-(cp-buf), "opt %s %s (%d s) ", r?"read-history ":"write-history", t,
NUM_SECS_BW_SUM_INTERVAL);
More information about the tor-commits
mailing list