summaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_client.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2020-02-18 12:37:34 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2020-02-18 12:37:34 +0200
commit975102869a3b5957bc0a1f2103697371fbe04cd3 (patch)
tree5f64c4422c34ef80eb2c13e749a8771086918c3f /src/feature/hs/hs_client.c
parent901ed35709ac79e841b89d947a0d84526f4d8daf (diff)
downloadtor-975102869a3b5957bc0a1f2103697371fbe04cd3.tar.gz
tor-975102869a3b5957bc0a1f2103697371fbe04cd3.zip
Fix issues pointed out by Nick.
- Loose the asserts on num_pkeys. - Straighten some dangling &. - Fix some unpredictable memcpys.
Diffstat (limited to 'src/feature/hs/hs_client.c')
-rw-r--r--src/feature/hs/hs_client.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/feature/hs/hs_client.c b/src/feature/hs/hs_client.c
index 601062190d..58a143650b 100644
--- a/src/feature/hs/hs_client.c
+++ b/src/feature/hs/hs_client.c
@@ -1837,8 +1837,7 @@ hs_client_decode_descriptor(const char *desc_str,
uint64_t current_time_period = hs_get_time_period_num(0);
hs_build_blinded_pubkey(service_identity_pk, NULL, 0, current_time_period,
&blinded_pubkey);
- hs_get_subcredential(service_identity_pk, &blinded_pubkey, &
- subcredential);
+ hs_get_subcredential(service_identity_pk, &blinded_pubkey, &subcredential);
}
/* Parse descriptor */