]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r11958@catbus: nickm | 2007-02-26 22:28:03 -0500
authorNick Mathewson <nickm@torproject.org>
Tue, 27 Feb 2007 03:53:40 +0000 (03:53 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 27 Feb 2007 03:53:40 +0000 (03:53 +0000)
 Add a missing set to onion_key_set_at to avoid premature rotates.

svn:r9662

ChangeLog
src/or/router.c

index a0161486140f446c44b98f6eec20156a4d022f7a..2c5607c3e0530b28d83d81e86bccbe697cb85ab1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Changes in version 0.1.2.9-??? - 2007-??-??
+  o Minor bugfixes (server):
+    - Do not rotate onion key immediately after setting it for the first
+      time.
+
+
 Changes in version 0.1.2.8-beta - 2007-02-26
   o Major bugfixes (crashes):
     - Stop crashing when the controller asks us to resetconf more than
index 0c0f4c986d4fe1d99b457fe137065894a5232fe7..881fc9301e71ba93075cf2360a0ca50d2b853d4c 100644 (file)
@@ -291,7 +291,7 @@ init_keys(void)
      * or it's a holdover from 0.1.2.4-alpha-dev or earlier.  In either case,
      * start the clock ticking now so that we will eventually rotate it even
      * if we don't stay up for a full MIN_ONION_KEY_LIFETIME. */
-    state->LastRotatedOnionKey = time(NULL);
+    state->LastRotatedOnionKey = onionkey_set_at = time(NULL);
     or_state_mark_dirty(state, options->AvoidDiskWrites ? time(NULL)+3600 : 0);
   }