]> git.ipfire.org Git - thirdparty/tor.git/commit
Bugfixes on bug11243 fix for the not-added cases and tests
authorNick Mathewson <nickm@torproject.org>
Mon, 13 Oct 2014 18:11:27 +0000 (14:11 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 13 Oct 2014 18:31:11 +0000 (14:31 -0400)
commit223d354e344ad3d07766b7c19e1841342c270ad2
treeab2026149aec399fe4ff9a1e8a9d97228f1afa88
parent39795e117f55fc951ea9ba0802ce5ce91e65ae33
Bugfixes on bug11243 fix for the not-added cases and tests

 1. The test that adds things to the cache needs to set the clock back so
    that the descriptors it adds are valid.

 2. We split ROUTER_NOT_NEW into ROUTER_TOO_OLD, so that we can
    distinguish "already had it" from "rejected because of old published
    date".

 3. We make extrainfo_insert() return a was_router_added_t, and we
    make its caller use it correctly.  This is probably redundant with
    the extrainfo_is_bogus flag.
src/or/or.h
src/or/routerlist.c
src/or/routerlist.h
src/test/test_dir.c