summaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-12-03 13:37:13 -0500
committerNick Mathewson <nickm@torproject.org>2010-12-03 13:37:13 -0500
commitc0f1517d87d0c858ba8472eb85fd31df73f4b4d1 (patch)
tree9495237315e5f0bc8d3efabab8e4f0aaa7a71ef5 /src/or/control.c
parentee8f451bf1a8a0d01bb990ddf96f810a254394eb (diff)
downloadtor-c0f1517d87d0c858ba8472eb85fd31df73f4b4d1.tar.gz
tor-c0f1517d87d0c858ba8472eb85fd31df73f4b4d1.zip
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 'src/or/control.c')
0 files changed, 0 insertions, 0 deletions