diff options
author | Roger Dingledine <arma@torproject.org> | 2006-12-15 00:10:16 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-12-15 00:10:16 +0000 |
commit | 29f4562c8ba188dcacc9563077cc4b150d4125fc (patch) | |
tree | bec9d2dce14ee07d2f52bb3abf49f7de5d97f880 | |
parent | 5145b503a248d45e38f4f15aa3c6bd7f20604d69 (diff) | |
download | tor-29f4562c8ba188dcacc9563077cc4b150d4125fc.tar.gz tor-29f4562c8ba188dcacc9563077cc4b150d4125fc.zip |
Clients no longer store bandwidth history in the state file.
(adapated from r9043)
svn:r9111
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/or/rephist.c | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -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; |