Be more robust to bad circwindow values
commit0d13e0ed145f4c1b5bd1623ab529d24208304390
authorRoger Dingledine <arma@torproject.org>
Wed, 23 Sep 2009 02:09:33 +0000 (22 22:09 -0400)
committerRoger Dingledine <arma@torproject.org>
Wed, 23 Sep 2009 02:09:33 +0000 (22 22:09 -0400)
tree9683c2e5445686afa94c70c8114b4c8e6d3fc0ea
parent6acfa31d5989ccb15812610669351b9206285905
Be more robust to bad circwindow values

If the networkstatus consensus tells us that we should use a
negative circuit package window, ignore it. Otherwise we'll
believe it and then trigger an assert.

Also, change the interface for networkstatus_get_param() so we
don't have to lookup the consensus beforehand.
ChangeLog
src/or/circuitlist.c
src/or/networkstatus.c