]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Keep descriptor rotation time after HUP occurs.
authorGeorge Kadianakis <desnacked@riseup.net>
Sat, 28 Jul 2018 15:31:46 +0000 (17:31 +0200)
committerNick Mathewson <nickm@torproject.org>
Thu, 16 Aug 2018 12:36:48 +0000 (08:36 -0400)
changes/bug26932 [new file with mode: 0644]
src/or/hs_service.c

diff --git a/changes/bug26932 b/changes/bug26932
new file mode 100644 (file)
index 0000000..7d9481d
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes (onion services):
+    - Fix bug that causes services to not ever rotate their descriptors if they
+      were getting SIGHUPed often. Fixes bug 26932; bugfix on 0.3.2.1-alpha.
\ No newline at end of file
index b9a1dfc36e2dbbdc65f62a2338b728be7dfa5f88..33088480d127a9e0f5becd5665948a947a771c68 100644 (file)
@@ -845,6 +845,7 @@ move_hs_state(hs_service_t *src_service, hs_service_t *dst_service)
     replaycache_free(dst->replay_cache_rend_cookie);
   }
   dst->replay_cache_rend_cookie = src->replay_cache_rend_cookie;
+  dst->next_rotation_time = src->next_rotation_time;
 
   src->replay_cache_rend_cookie = NULL; /* steal pointer reference */
 }