diff options
author | teor <teor2345@gmail.com> | 2014-10-01 18:54:26 +1000 |
---|---|---|
committer | teor <teor2345@gmail.com> | 2014-10-08 05:36:54 +1100 |
commit | ff42222845f5d79f27b653990cab4f20ad91a068 (patch) | |
tree | 06ad1fb8be7f17838ac1f6955ee0b3fca1e237b7 /src/or/directory.c | |
parent | c1dd43d823c74f59f8ba0eff90f6ddab6763f408 (diff) | |
download | tor-ff42222845f5d79f27b653990cab4f20ad91a068.tar.gz tor-ff42222845f5d79f27b653990cab4f20ad91a068.zip |
Improve DIRINFO flags' usage comments
Document usage of the NO_DIRINFO and ALL_DIRINFO flags clearly in functions
which take them as arguments. Replace 0 with NO_DIRINFO in a function call
for clarity.
Seeks to prevent future issues like 13163.
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 1aaa75ccee..12717ebfed 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -523,12 +523,12 @@ directory_get_from_dirserver(uint8_t dir_purpose, uint8_t router_purpose, /* anybody with a non-zero dirport will do. Disregard firewalls. */ pds_flags |= PDS_IGNORE_FASCISTFIREWALL; rs = router_pick_directory_server(type, pds_flags); - /* If we have any hope of building an indirect conn, we know some router - * descriptors. If (rs==NULL), we can't build circuits anyway, so - * there's no point in falling back to the authorities in this case. */ } } + /* If we have any hope of building an indirect conn, we know some router + * descriptors. If (rs==NULL), we can't build circuits anyway, so + * there's no point in falling back to the authorities in this case. */ if (rs) { const dir_indirection_t indirection = get_via_tor ? DIRIND_ANONYMOUS : DIRIND_ONEHOP; |