summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-11-14 11:41:37 -0500
committerNick Mathewson <nickm@torproject.org>2016-11-30 14:42:52 -0500
commit22f2f13f81407cffd46d5b17eca4bcead347fe58 (patch)
tree75f66d34b6951af5e1e6f0cf89a51475ef649cd2 /src/or/circuitbuild.c
parent4614f8e6816d559f8fbe9ae0f42d751d3fb95c77 (diff)
downloadtor-22f2f13f81407cffd46d5b17eca4bcead347fe58.tar.gz
tor-22f2f13f81407cffd46d5b17eca4bcead347fe58.zip
prop271: make entry_guard_t mostly-private
The entry_guard_t structure should really be opaque, so that we can change its contents and have the rest of Tor not care. This commit makes it "mostly opaque" -- circpathbias.c can still see inside it. (I'm making circpathbias.c exempt since it's the only part of Tor outside of entrynodes.c that made serious use of entry_guard_t internals.)
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 0881f231aa..2998f5c602 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -2238,7 +2238,7 @@ choose_good_entry_server(uint8_t purpose, cpath_build_state_t *state)
)) {
SMARTLIST_FOREACH(get_entry_guards(), const entry_guard_t *, entry,
{
- if ((node = node_get_by_id(entry->identity))) {
+ if ((node = entry_guard_find_node(entry))) {
nodelist_add_node_and_family(excluded, node);
}
});