From b9f2ccbdcc222869b7561714c285db8b47e52e77 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 1 Oct 2010 19:52:05 -0400 Subject: More debugging code for node_t branch --- src/or/nodelist.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/or/nodelist.c') diff --git a/src/or/nodelist.c b/src/or/nodelist.c index d303fc67b4..a7946c9a2c 100644 --- a/src/or/nodelist.c +++ b/src/or/nodelist.c @@ -593,9 +593,10 @@ node_get_verbose_nickname(const node_t *node, int node_allows_single_hop_exits(const node_t *node) { - (void)node; - UNIMPLEMENTED_NODELIST(); - return 0; + if (node && node->ri) + return node->ri->allow_single_hop_exits; + else + return 0; } /** Return true iff it seems that node has an exit policy that doesn't -- cgit v1.2.3-54-g00ecf