diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-03-12 11:03:37 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-03-12 11:03:37 -0400 |
commit | 9c9214f2c9f4e9511a2e09238e1cc90d81ae02de (patch) | |
tree | 9e0709fc47d564f4646777ad534cba33812d8733 /src/feature/dirauth/shared_random.c | |
parent | a9c84bfd358799dc2dbe805ff6db4a6ca184ef0b (diff) | |
parent | dfc3e552a3b7617add0bd576a5c34dca59f42649 (diff) | |
download | tor-9c9214f2c9f4e9511a2e09238e1cc90d81ae02de.tar.gz tor-9c9214f2c9f4e9511a2e09238e1cc90d81ae02de.zip |
Merge remote-tracking branch 'tor-github/pr/776' into maint-0.4.0
Diffstat (limited to 'src/feature/dirauth/shared_random.c')
-rw-r--r-- | src/feature/dirauth/shared_random.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/feature/dirauth/shared_random.c b/src/feature/dirauth/shared_random.c index 34b2283250..137c49800f 100644 --- a/src/feature/dirauth/shared_random.c +++ b/src/feature/dirauth/shared_random.c @@ -120,8 +120,8 @@ static const char sr_flag_ns_str[] = "shared-rand-participate"; static int32_t num_srv_agreements_from_vote; /* Return a heap allocated copy of the SRV <b>orig</b>. */ -STATIC sr_srv_t * -srv_dup(const sr_srv_t *orig) +sr_srv_t * +sr_srv_dup(const sr_srv_t *orig) { sr_srv_t *duplicate = NULL; @@ -1253,8 +1253,8 @@ sr_act_post_consensus(const networkstatus_t *consensus) * decided by the majority. */ sr_state_unset_fresh_srv(); /* Set the SR values from the given consensus. */ - sr_state_set_previous_srv(srv_dup(consensus->sr_info.previous_srv)); - sr_state_set_current_srv(srv_dup(consensus->sr_info.current_srv)); + sr_state_set_previous_srv(sr_srv_dup(consensus->sr_info.previous_srv)); + sr_state_set_current_srv(sr_srv_dup(consensus->sr_info.current_srv)); } /* Prepare our state so that it's ready for the next voting period. */ |