diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-10-01 19:52:05 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-10-01 19:52:05 -0400 |
commit | b9f2ccbdcc222869b7561714c285db8b47e52e77 (patch) | |
tree | 3592078ecb7bde611ea761d7020e93976d6c609a /src/or/nodelist.c | |
parent | 1bb9734e3a745e2a16b58512f47a6db1229a2b75 (diff) | |
download | tor-b9f2ccbdcc222869b7561714c285db8b47e52e77.tar.gz tor-b9f2ccbdcc222869b7561714c285db8b47e52e77.zip |
More debugging code for node_t branch
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r-- | src/or/nodelist.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 <b>node</b> has an exit policy that doesn't |