]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Don't crash a bridge authority on SIGHUP if it's not in the consensus
authorRobert Ransom <rransom.8774@gmail.com>
Wed, 16 Feb 2011 12:12:37 +0000 (04:12 -0800)
committerSebastian Hahn <sebastian@torproject.org>
Wed, 26 Oct 2011 20:09:44 +0000 (22:09 +0200)
Fixes bug 2572.

changes/bug2572 [new file with mode: 0644]
src/or/router.c

diff --git a/changes/bug2572 b/changes/bug2572
new file mode 100644 (file)
index 0000000..a5cca28
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes:
+    - Don't crash a bridge authority on SIGHUP if it can't force itself
+      into its routerlist.  Fixes bug 2572.
+
+
index c471599cb6dd50f3bdfa9b2078252c58c7f76511..7354267a6fc4db83e8b56714d3f0745fe725424a 100644 (file)
@@ -615,7 +615,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. */