diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-29 13:07:13 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-29 13:07:13 -0400 |
commit | 1f389dadd02e9a234ee1d1c316cdb6dcc2b25489 (patch) | |
tree | 5418624ad0a04859728e253c35a1cc88a6f9dc81 /src/or | |
parent | 7a47379f252b4d277df7c289f8a9d3160b50eee0 (diff) | |
parent | d3ecb3a8d6d55575d4ab3f80fed5e2b2fdcc561a (diff) | |
download | tor-1f389dadd02e9a234ee1d1c316cdb6dcc2b25489.tar.gz tor-1f389dadd02e9a234ee1d1c316cdb6dcc2b25489.zip |
Merge branch 'maint-0.3.4'
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/hs_client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/hs_client.c b/src/or/hs_client.c index faccfae50b..8fddd51a47 100644 --- a/src/or/hs_client.c +++ b/src/or/hs_client.c @@ -375,14 +375,12 @@ pick_hsdir_v3(const ed25519_public_key_t *onion_identity_pk) int retval; char base64_blinded_pubkey[ED25519_BASE64_LEN + 1]; uint64_t current_time_period = hs_get_time_period_num(0); - smartlist_t *responsible_hsdirs; + smartlist_t *responsible_hsdirs = NULL; ed25519_public_key_t blinded_pubkey; routerstatus_t *hsdir_rs = NULL; tor_assert(onion_identity_pk); - responsible_hsdirs = smartlist_new(); - /* Get blinded pubkey of hidden service */ hs_build_blinded_pubkey(onion_identity_pk, NULL, 0, current_time_period, &blinded_pubkey); @@ -393,6 +391,8 @@ pick_hsdir_v3(const ed25519_public_key_t *onion_identity_pk) } /* Get responsible hsdirs of service for this time period */ + responsible_hsdirs = smartlist_new(); + hs_get_responsible_hsdirs(&blinded_pubkey, current_time_period, 0, 1, responsible_hsdirs); |