diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-05-04 10:14:38 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-05-04 10:14:38 -0400 |
commit | a02e866642c28b4c0cbe415f8573c4ede4d9caf7 (patch) | |
tree | 5261d866a9330ac5d879fd7f537f030f80254f96 | |
parent | 987f2fa50ac26af61917c7a6e13dc62f3ddb23ee (diff) | |
parent | d7e166bd95411d3f5caa573e0293356bff78c481 (diff) | |
download | tor-a02e866642c28b4c0cbe415f8573c4ede4d9caf7.tar.gz tor-a02e866642c28b4c0cbe415f8573c4ede4d9caf7.zip |
Merge branch 'bug34077_041' into maint-0.4.1
-rw-r--r-- | changes/bug34077 | 3 | ||||
-rw-r--r-- | src/feature/dirauth/shared_random_state.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/changes/bug34077 b/changes/bug34077 new file mode 100644 index 0000000000..29458bd9de --- /dev/null +++ b/changes/bug34077 @@ -0,0 +1,3 @@ + o Minor bugfixes (compiler warnings): + - Fix compilation warnings with GCC 10.0.1. Fixes bug 34077; bugfix on + 0.4.0.3-alpha. diff --git a/src/feature/dirauth/shared_random_state.c b/src/feature/dirauth/shared_random_state.c index b669e3836e..58c203e204 100644 --- a/src/feature/dirauth/shared_random_state.c +++ b/src/feature/dirauth/shared_random_state.c @@ -1057,8 +1057,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; } |