summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-29 13:07:07 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-29 13:07:07 -0400
commit6e9d5fc4ec40136d173be680a85a9bfb9b99fea4 (patch)
treee113c7ad625610479b76de4175883ba53a00261f /src/or
parent68dfbd5ef433b830059baa08d48589518db05d22 (diff)
parenta2e623f631a63f041f76b79e554b01bbf62748b8 (diff)
downloadtor-6e9d5fc4ec40136d173be680a85a9bfb9b99fea4.tar.gz
tor-6e9d5fc4ec40136d173be680a85a9bfb9b99fea4.zip
Merge remote-tracking branch 'ahf-github/maint-0.3.2' into maint-0.3.2
Diffstat (limited to 'src/or')
-rw-r--r--src/or/hs_client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/hs_client.c b/src/or/hs_client.c
index 551cf50554..4e2824c13d 100644
--- a/src/or/hs_client.c
+++ b/src/or/hs_client.c
@@ -365,14 +365,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);
@@ -383,6 +381,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);