]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Don't just tell the controller "foo" on id mismatch
authorNick Mathewson <nickm@torproject.org>
Fri, 2 Dec 2011 21:27:33 +0000 (16:27 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 2 Dec 2011 21:27:33 +0000 (16:27 -0500)
Fixes bug 4169; bugfix on 0.2.1.1-alpha.

changes/bug4169 [new file with mode: 0644]
src/or/connection_or.c

diff --git a/changes/bug4169 b/changes/bug4169
new file mode 100644 (file)
index 0000000..38c18d3
--- /dev/null
@@ -0,0 +1,6 @@
+  o Minor bugfixes:
+    - Report a real bootstrap problem to the controller on router
+      identity mismatch. Previously we just said "foo", which probably
+      made a lot of sense at the time. Fixes bug 4169; bugfix on
+      0.2.1.1-alpha.
+
index 470f6d2a30c7713b4bcc2c0e35155aef0641eb1c..b865e136648e523193a868d76869daffe76fc182 100644 (file)
@@ -1514,7 +1514,9 @@ connection_or_client_learned_peer_id(or_connection_t *conn,
     control_event_or_conn_status(conn, OR_CONN_EVENT_FAILED,
                                  END_OR_CONN_REASON_OR_IDENTITY);
     if (!authdir_mode_tests_reachability(options))
-      control_event_bootstrap_problem("foo", END_OR_CONN_REASON_OR_IDENTITY);
+      control_event_bootstrap_problem(
+                                "Unexpected identity in router certificate",
+                                END_OR_CONN_REASON_OR_IDENTITY);
     as_expected = 0;
   }
   if (authdir_mode_tests_reachability(options)) {