Avoid an integer underflow when the dir authority decides whether a
commitc4411841d23106a59480e2644cb66bf05644273e
authorRoger Dingledine <arma@torproject.org>
Fri, 14 Jul 2006 03:14:02 +0000 (14 03:14 +0000)
committerRoger Dingledine <arma@torproject.org>
Fri, 14 Jul 2006 03:14:02 +0000 (14 03:14 +0000)
tree7085593f04e4139957c5de2903d750f7cbbbdbe2
parent2c20882f0261cadde26c4b200386ecb3c09e5477
Avoid an integer underflow when the dir authority decides whether a
router is stable: we might wrongly label it stable, and compute a slightly
wrong median stability, when a descriptor is published later than now.

Inspired by Matt's Vidalia checkin:
http://trac.vidalia-project.net/changeset/1074

svn:r6758
src/or/dirserv.c