[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] fix routerlist/pick_directory_server_impl in light of 12538



commit f0a4282e9af25e6c77e6b8a0e59c4aa34e75b9bc
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Fri Dec 18 14:10:03 2015 -0500

    fix routerlist/pick_directory_server_impl in light of 12538
---
 src/test/test_dir_common.c |    1 +
 src/test/test_routerlist.c |    2 ++
 2 files changed, 3 insertions(+)

diff --git a/src/test/test_dir_common.c b/src/test/test_dir_common.c
index 5c899a9..44ea93b 100644
--- a/src/test/test_dir_common.c
+++ b/src/test/test_dir_common.c
@@ -143,6 +143,7 @@ dir_common_gen_routerstatus_for_v3ns(int idx, time_t now)
       rs->addr = 0xC0000203;
       rs->or_port = 500;
       rs->dir_port = 1999;
+      rs->is_v2_dir = 1;
       /* Running flag (and others) cleared */
       break;
     case 4:
diff --git a/src/test/test_routerlist.c b/src/test/test_routerlist.c
index d86fe9c..090a607 100644
--- a/src/test/test_routerlist.c
+++ b/src/test/test_routerlist.c
@@ -241,6 +241,8 @@ test_router_pick_directory_server_impl(void *arg)
   node_router2 = node_get_mutable_by_id(router2_id);
   node_router3 = node_get_mutable_by_id(router3_id);
 
+  node_router1->is_possible_guard = 1;
+
   node_router1->is_running = 0;
   node_router3->is_running = 0;
   rs = router_pick_directory_server_impl(V3_DIRINFO, flags, NULL);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits