diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-12-03 12:18:45 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-12-03 12:18:45 -0500 |
commit | 32213fa9ad8a306e1f3bade1c95b1ad95a136bd9 (patch) | |
tree | 31c76ba117d341f75e993ecab074d4dcae4be4aa /src/test/fuzz | |
parent | 439ffcefd57031153e49e605389a1c218e737180 (diff) | |
download | tor-32213fa9ad8a306e1f3bade1c95b1ad95a136bd9.tar.gz tor-32213fa9ad8a306e1f3bade1c95b1ad95a136bd9.zip |
Keep list of dirauth flags in sync between dirvote.c and fuzz_vrs.c
Suggested by Teor on PR
Diffstat (limited to 'src/test/fuzz')
-rw-r--r-- | src/test/fuzz/fuzz_vrs.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/test/fuzz/fuzz_vrs.c b/src/test/fuzz/fuzz_vrs.c index 3c6d205a3f..f0d90d7cc6 100644 --- a/src/test/fuzz/fuzz_vrs.c +++ b/src/test/fuzz/fuzz_vrs.c @@ -3,6 +3,7 @@ #define NS_PARSE_PRIVATE #define NETWORKSTATUS_PRIVATE #include "core/or/or.h" +#include "feature/dirauth/dirvote.h" #include "feature/dirparse/ns_parse.h" #include "feature/dirparse/unparseable.h" #include "lib/memarea/memarea.h" @@ -35,9 +36,12 @@ fuzz_init(void) dummy_vote = tor_malloc_zero(sizeof(*dummy_vote)); dummy_vote->known_flags = smartlist_new(); smartlist_split_string(dummy_vote->known_flags, - "Authority BadExit Exit Fast Guard HSDir " - "NoEdConsensus Running Stable V2Dir Valid", + DIRVOTE_UNIVERSAL_FLAGS, " ", 0, 0); + smartlist_split_string(dummy_vote->known_flags, + DIRVOTE_OPTIONAL_FLAGS, + " ", 0, 0); + smartlist_sort_strings(dummy_vote->known_flags); return 0; } |