aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-12-15 00:10:16 +0000
committerRoger Dingledine <arma@torproject.org>2006-12-15 00:10:16 +0000
commit29f4562c8ba188dcacc9563077cc4b150d4125fc (patch)
treebec9d2dce14ee07d2f52bb3abf49f7de5d97f880
parent5145b503a248d45e38f4f15aa3c6bd7f20604d69 (diff)
downloadtor-29f4562c8ba188dcacc9563077cc4b150d4125fc.tar.gz
tor-29f4562c8ba188dcacc9563077cc4b150d4125fc.zip
Clients no longer store bandwidth history in the state file.
(adapated from r9043) svn:r9111
-rw-r--r--ChangeLog1
-rw-r--r--src/or/rephist.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1dab2993e5..8f2c190e09 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@ Changes in version 0.1.1.26 - 2006-12-14
o Security bugfixes:
- Stop sending the HttpProxyAuthenticator string to directory
servers when directory connections are tunnelled through Tor.
+ - Clients no longer store bandwidth history in the state file.
- Do not log introduction points for hidden services if SafeLogging
is set.
diff --git a/src/or/rephist.c b/src/or/rephist.c
index 1479390799..28cdef6460 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -597,6 +597,10 @@ rep_hist_fill_bandwidth_history(char *buf, size_t len, bw_array_t *b)
char *cp = buf;
int i, n;
+ if (!server_mode(get_options())) {
+ return 0;
+ }
+
if (b->num_maxes_set <= b->next_max_idx) {
/* We haven't been through the circular array yet; time starts at i=0.*/
i = 0;