summaryrefslogtreecommitdiff
path: root/src/or/hs_cell.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-08-03 16:04:25 +0300
committerNick Mathewson <nickm@torproject.org>2017-08-08 20:29:34 -0400
commita561a10da726b426d326515ca7f75988b405bab7 (patch)
treed0b7089e76d3a2f8ed9db8d26ff025c53e88b4be /src/or/hs_cell.c
parent2c6f2e9be9db6d3889a0756be93d7203888eaa72 (diff)
downloadtor-a561a10da726b426d326515ca7f75988b405bab7.tar.gz
tor-a561a10da726b426d326515ca7f75988b405bab7.zip
Fix small easy bugs all around
- Fix log message format string. - Do extra circuit purpose check. - wipe memory in a clear function - Make sure we don't double add intro points in our list - Make sure we don't double close intro circuits. - s/tt_u64_op/tt_i64_op/
Diffstat (limited to 'src/or/hs_cell.c')
-rw-r--r--src/or/hs_cell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/hs_cell.c b/src/or/hs_cell.c
index 922ff73468..064e26334d 100644
--- a/src/or/hs_cell.c
+++ b/src/or/hs_cell.c
@@ -169,9 +169,9 @@ parse_introduce2_encrypted(const uint8_t *decrypted_data,
if (trn_cell_introduce_encrypted_getlen_onion_key(enc_cell) !=
CURVE25519_PUBKEY_LEN) {
- log_info(LD_REND, "INTRODUCE2 onion key length is invalid. Got %ld but "
+ log_info(LD_REND, "INTRODUCE2 onion key length is invalid. Got %u but "
"expected %d on circuit %u for service %s",
- trn_cell_introduce_encrypted_getlen_onion_key(enc_cell),
+ (unsigned)trn_cell_introduce_encrypted_getlen_onion_key(enc_cell),
CURVE25519_PUBKEY_LEN, TO_CIRCUIT(circ)->n_circ_id,
safe_str_client(service->onion_address));
goto err;