]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Assert when the TLS contexts fail to initialize
authorcypherpunks <cypherpunks@torproject.org>
Thu, 10 Dec 2015 12:55:21 +0000 (13:55 +0100)
committerNick Mathewson <nickm@torproject.org>
Thu, 10 Dec 2015 13:50:40 +0000 (08:50 -0500)
changes/bug17683 [new file with mode: 0644]
src/or/main.c

diff --git a/changes/bug17683 b/changes/bug17683
new file mode 100644 (file)
index 0000000..e9d4751
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes (TLS context):
+    - Assert when the TLS contexts fail to initialize. Fixes bug 17683;
+      bugfix on 0.0.6.
index 3f166c819d089222dbef613d887b565dbb409ddd..527e2b1ffe9f31647bb8b41638a4015ae6e7b33a 100644 (file)
@@ -1609,7 +1609,7 @@ rotate_x509_certificate_callback(time_t now, const or_options_t *options)
   log_info(LD_GENERAL,"Rotating tls context.");
   if (router_initialize_tls_context() < 0) {
     log_warn(LD_BUG, "Error reinitializing TLS context");
-    /* XXX is it a bug here, that we just keep going? -RD */
+    tor_assert(0);
   }
 
   /* We also make sure to rotate the TLS connections themselves if they've