diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-01-31 12:30:33 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-01-31 12:30:33 -0500 |
commit | 02da24f8e5b2ce34da941cc25ce9808b447065ac (patch) | |
tree | 08fb5355350a59e96e674d21d2cd715fda69af4f /src/or/entrynodes.h | |
parent | 26957a127a80404ca243e50c3f0c2bac01e480b8 (diff) | |
download | tor-02da24f8e5b2ce34da941cc25ce9808b447065ac.tar.gz tor-02da24f8e5b2ce34da941cc25ce9808b447065ac.zip |
Don't (usually) return any guards that are missing descriptors.
Actually, it's _fine_ to use a descriptorless guard for fetching
directory info -- we just shouldn't use it when building circuits.
Fortunately, we already have a "usage" flag that we can use here.
Partial fix for bug 21242.
Diffstat (limited to 'src/or/entrynodes.h')
-rw-r--r-- | src/or/entrynodes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h index d469df7e3d..0c29292c17 100644 --- a/src/or/entrynodes.h +++ b/src/or/entrynodes.h @@ -498,6 +498,7 @@ STATIC int entry_guards_all_primary_guards_are_down(guard_selection_t *gs); #define SAMPLE_EXCLUDE_PRIMARY (1u<<1) #define SAMPLE_EXCLUDE_PENDING (1u<<2) #define SAMPLE_NO_UPDATE_PRIMARY (1u<<3) +#define SAMPLE_EXCLUDE_NO_DESCRIPTOR (1u<<4) /**@}*/ STATIC entry_guard_t *sample_reachable_filtered_entry_guards( guard_selection_t *gs, |