diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-05-04 10:25:53 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-05-04 10:25:53 -0400 |
commit | f96b6ccee1945b2db32c858837ac21c6d81c820b (patch) | |
tree | 02a5dda7dd8241f67dcb719a2391dcc11c3f304f /src/feature/dirauth/shared_random_state.c | |
parent | 6dc9930d3a14c30af0f285a884476f33a782938c (diff) | |
parent | e61867416ec23b996de4c6a8c1c6875db549faf2 (diff) | |
download | tor-f96b6ccee1945b2db32c858837ac21c6d81c820b.tar.gz tor-f96b6ccee1945b2db32c858837ac21c6d81c820b.zip |
Merge branch 'maint-0.4.3'
Diffstat (limited to 'src/feature/dirauth/shared_random_state.c')
-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 598d781557..07bc757506 100644 --- a/src/feature/dirauth/shared_random_state.c +++ b/src/feature/dirauth/shared_random_state.c @@ -1041,8 +1041,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; } |