aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/hs_common.c')
-rw-r--r--src/or/hs_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/hs_common.c b/src/or/hs_common.c
index f5c63cb6a0..62cda34bd6 100644
--- a/src/or/hs_common.c
+++ b/src/or/hs_common.c
@@ -1004,9 +1004,9 @@ hs_build_hs_index(uint64_t replica, const ed25519_public_key_t *blinded_pk,
size_t offset = 0;
set_uint64(buf, tor_htonll(replica));
offset += sizeof(uint64_t);
- set_uint64(buf, tor_htonll(period_length));
+ set_uint64(buf+offset, tor_htonll(period_length));
offset += sizeof(uint64_t);
- set_uint64(buf, tor_htonll(period_num));
+ set_uint64(buf+offset, tor_htonll(period_num));
offset += sizeof(uint64_t);
tor_assert(offset == sizeof(buf));