diff options
-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; |