]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fail more gracefully next time
authorRoger Dingledine <arma@torproject.org>
Tue, 23 Nov 2004 09:01:37 +0000 (09:01 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 23 Nov 2004 09:01:37 +0000 (09:01 +0000)
svn:r2954

src/or/rephist.c

index 1dea9fa85cbdd7663cde3555f5e1a2d2c680d2d2..72a9f4a812dd1e58c18d0311315512aa94548948 100644 (file)
@@ -588,6 +588,7 @@ rep_hist_get_bandwidth_lines(void)
   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);