diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-02-11 16:06:02 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-02-11 16:06:02 -0500 |
commit | fd8ef8dc573e0d20141fbd352a24a8c7fd0e305b (patch) | |
tree | fdce5ee691deea9f8fe30103c842732d44d4539f /src | |
parent | 43d2f99d54d92234615d68935661787d14a89688 (diff) | |
parent | e3578d52e4d32483422cb867786373c2b7b493b5 (diff) | |
download | tor-fd8ef8dc573e0d20141fbd352a24a8c7fd0e305b.tar.gz tor-fd8ef8dc573e0d20141fbd352a24a8c7fd0e305b.zip |
Merge remote-tracking branch 'public/bug8208'
Diffstat (limited to 'src')
-rw-r--r-- | src/or/router.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c index f336f128d2..899246f85e 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -1942,9 +1942,13 @@ router_rebuild_descriptor(int force) anyway, since they don't have a DirPort, and always connect to the bridge authority anonymously. But just in case they somehow think of sending them on an unencrypted connection, don't allow them to try. */ - ri->cache_info.send_unencrypted = ei->cache_info.send_unencrypted = 0; + ri->cache_info.send_unencrypted = 0; + if (ei) + ei->cache_info.send_unencrypted = 0 } else { - ri->cache_info.send_unencrypted = ei->cache_info.send_unencrypted = 1; + ri->cache_info.send_unencrypted = 1; + if (ei) + ei->cache_info.send_unencrypted = 1; } router_get_router_hash(ri->cache_info.signed_descriptor_body, |