diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-04-30 23:01:58 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-04-30 23:01:58 -0400 |
commit | 6aaee6133d089611050a3507d7258486dcf97d1e (patch) | |
tree | 6c94a8ca58337befa9a77f1c66de1892986bfa42 /src/feature/dirauth | |
parent | 42507429ce45495667c3c334679425210a291226 (diff) | |
parent | b4b1882da012697136d3ffd40f693b1f97964a5b (diff) | |
download | tor-6aaee6133d089611050a3507d7258486dcf97d1e.tar.gz tor-6aaee6133d089611050a3507d7258486dcf97d1e.zip |
Merge branch 'bug34077_042' into bug34077_043
Diffstat (limited to 'src/feature/dirauth')
-rw-r--r-- | src/feature/dirauth/shared_random_state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/feature/dirauth/shared_random_state.c b/src/feature/dirauth/shared_random_state.c index 1792d540c6..cfbfa4ec5b 100644 --- a/src/feature/dirauth/shared_random_state.c +++ b/src/feature/dirauth/shared_random_state.c @@ -1039,8 +1039,9 @@ sr_state_set_valid_after(time_t valid_after) sr_phase_t sr_state_get_phase(void) { - void *ptr; + void *ptr=NULL; state_query(SR_STATE_ACTION_GET, SR_STATE_OBJ_PHASE, NULL, &ptr); + tor_assert(ptr); return *(sr_phase_t *) ptr; } |