diff options
author | George Kadianakis <desnacked@riseup.net> | 2020-02-18 12:37:34 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2020-02-18 12:37:34 +0200 |
commit | 975102869a3b5957bc0a1f2103697371fbe04cd3 (patch) | |
tree | 5f64c4422c34ef80eb2c13e749a8771086918c3f /src/feature/hs/hs_client.c | |
parent | 901ed35709ac79e841b89d947a0d84526f4d8daf (diff) | |
download | tor-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.c | 3 |
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 */ |