summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRobert Ransom <rransom.8774@gmail.com>2011-02-16 04:12:37 -0800
committerRobert Ransom <rransom.8774@gmail.com>2011-02-16 04:12:37 -0800
commit444a955e4a3877e9a7b3016deee9f1f4dfafdd93 (patch)
treeeb9f0fbae8921dd9e47480f35c1234a90089695d /src/or
parent9b745cdbf9cd7384e44e18bf40a3d2c9becbc345 (diff)
downloadtor-444a955e4a3877e9a7b3016deee9f1f4dfafdd93.tar.gz
tor-444a955e4a3877e9a7b3016deee9f1f4dfafdd93.zip
Don't crash a bridge authority on SIGHUP if it's not in the consensus
Fixes bug 2572.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/router.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 26ac351fc4..59276bac3a 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -629,7 +629,7 @@ init_keys(void)
/* 4. Build our router descriptor. */
/* Must be called after keys are initialized. */
mydesc = router_get_my_descriptor();
- if (authdir_mode(options)) {
+ if (authdir_mode_handles_descs(options, ROUTER_PURPOSE_GENERAL)) {
const char *m = NULL;
routerinfo_t *ri;
/* We need to add our own fingerprint so it gets recognized. */