diff options
author | George Kadianakis <desnacked@riseup.net> | 2018-07-28 17:31:46 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-08-16 08:36:48 -0400 |
commit | c798957b5925b637896bf162f58aca806235c2a5 (patch) | |
tree | dc664dd8c1548981f8476d0c329e33f881ad7663 | |
parent | db3414dd518d757e9a1c9be6c7987fee54f51cf7 (diff) | |
download | tor-c798957b5925b637896bf162f58aca806235c2a5.tar.gz tor-c798957b5925b637896bf162f58aca806235c2a5.zip |
Keep descriptor rotation time after HUP occurs.
-rw-r--r-- | changes/bug26932 | 3 | ||||
-rw-r--r-- | src/or/hs_service.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/changes/bug26932 b/changes/bug26932 new file mode 100644 index 0000000000..7d9481dcd3 --- /dev/null +++ b/changes/bug26932 @@ -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 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 */ } |