Fix the assert in bug 1776
commit114a371c0ea43aae667b71b2ba1e0a7754d08ea5
authorNick Mathewson <nickm@torproject.org>
Tue, 2 Nov 2010 15:20:09 +0000 (2 11:20 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 2 Nov 2010 15:20:09 +0000 (2 11:20 -0400)
tree4dc74a5f5b4f55ff5cace870a49975a9d07daceb
parent213139f887edd5f366108e72d77c33bcfa3f8ba9
Fix the assert in bug 1776

In the case where old_router == NULL but sdmap has an entry for the
router, we can currently safely infer that the old_router was not a
bridge.  Add an assert to ensure that this remains true, and fix the
logic not to die with the tor_assert(old_router) call.
changes/bug1776_redux [new file with mode: 0644]
src/or/routerlist.c