diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-12-03 13:37:13 -0500 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2011-10-26 14:20:47 +0200 |
commit | d0a91386e5b85c5a0db3981a294c7a75192f9c3a (patch) | |
tree | 0b2c88be96a51dc066541f5ad73402a3e8e18f6d /changes | |
parent | 3a890b3b70d53ac864be682f50f07ba07b8f09ba (diff) | |
download | tor-d0a91386e5b85c5a0db3981a294c7a75192f9c3a.tar tor-d0a91386e5b85c5a0db3981a294c7a75192f9c3a.tar.gz |
Don't crash when accountingmax is set in non-server Tors
We use a hash of the identity key to seed a prng to tell when an
accounting period should end. But thanks to the bug998 changes,
clients no longer have server-identity keys to use as a long-term seed
in accounting calculations. In any case, their identity keys (as used
in TLS) were never never fixed. So we can just set the wakeup time
from a random seed instead there. Still open is whether everybody
should be random.
This patch fixes bug 2235, which was introduced in 0.2.2.18-alpha.
Diagnosed with help from boboper on irc.
Diffstat (limited to 'changes')
-rw-r--r-- | changes/bug2235 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/changes/bug2235 b/changes/bug2235 new file mode 100644 index 000000000..0c3bafa44 --- /dev/null +++ b/changes/bug2235 @@ -0,0 +1,3 @@ + o Minor bugfixes + - Avoid crashes when AccountingMax is set on clients. Fixes bug 2235; + Bugfix on 0.2.2.18-alpha. Diagnosed by boboper. |