aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_service.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2018-07-28 17:31:46 +0200
committerNick Mathewson <nickm@torproject.org>2018-08-16 08:36:48 -0400
commitc798957b5925b637896bf162f58aca806235c2a5 (patch)
treedc664dd8c1548981f8476d0c329e33f881ad7663 /src/or/hs_service.c
parentdb3414dd518d757e9a1c9be6c7987fee54f51cf7 (diff)
downloadtor-c798957b5925b637896bf162f58aca806235c2a5.tar.gz
tor-c798957b5925b637896bf162f58aca806235c2a5.zip
Keep descriptor rotation time after HUP occurs.
Diffstat (limited to 'src/or/hs_service.c')
-rw-r--r--src/or/hs_service.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/hs_service.c b/src/or/hs_service.c
index b9a1dfc36e..33088480d1 100644
--- a/src/or/hs_service.c
+++ b/src/or/hs_service.c
@@ -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 */
}