summaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-04-03 19:43:47 -0400
committerNick Mathewson <nickm@torproject.org>2011-04-26 23:54:17 -0400
commit80adb3de507db4cd67208396e1ea301f131c1228 (patch)
treef2ada6125e306bfdf4baea7ea8f373043fd162b8 /src/or/routerlist.c
parent128582cc1f9fd363f3fb2a96b61fde1701a56970 (diff)
downloadtor-80adb3de507db4cd67208396e1ea301f131c1228.tar.gz
tor-80adb3de507db4cd67208396e1ea301f131c1228.zip
When there is a transition in permitted nodes, apply it to trackexithosts map
IOW, if we were using TrackExitHosts, and we added an excluded node or removed a node from exitnodes, we wouldn't actually remove the mapping that points us at the new node. Also, note with an XXX022 comment a place that I think we are looking at the wrong string.
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index d5e8a6b051..d9f099b4f8 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -5474,7 +5474,7 @@ routerset_needs_geoip(const routerset_t *set)
}
/** Return true iff there are no entries in <b>set</b>. */
-static int
+int
routerset_is_empty(const routerset_t *set)
{
return !set || smartlist_len(set->list) == 0;