[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor] 28/77: Make the thing compile.
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main
in repository tor.
commit 121766e6b87809709f3fbaf6ad621dd319a0e0cc
Author: Mike Perry <mikeperry-git@xxxxxxxxxxxxxx>
AuthorDate: Wed Jul 13 23:41:10 2022 +0000
Make the thing compile.
---
src/feature/hs/hs_circuit.c | 5 +++--
src/feature/hs/hs_descriptor.c | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/feature/hs/hs_circuit.c b/src/feature/hs/hs_circuit.c
index 6b8d87351c..948dab6933 100644
--- a/src/feature/hs/hs_circuit.c
+++ b/src/feature/hs/hs_circuit.c
@@ -1325,8 +1325,9 @@ hs_circ_handle_introduce2(const hs_service_t *service,
/* Add the rendezvous request to the priority queue if PoW defenses are
* enabled, otherwise rendezvous as usual. */
if (service->config.has_pow_defenses_enabled) {
- log_notice(LD_REND, "Adding introduction request to pqueue with effort: %u",
- data.rdv_data.pow_effort);
+ log_notice(LD_REND,
+ "Adding introduction request to pqueue with effort: %u",
+ data.rdv_data.pow_effort);
if (enqueue_rend_request(service, ip, &data, now) < 0) {
goto done;
}
diff --git a/src/feature/hs/hs_descriptor.c b/src/feature/hs/hs_descriptor.c
index 27152a8bf0..816946555b 100644
--- a/src/feature/hs/hs_descriptor.c
+++ b/src/feature/hs/hs_descriptor.c
@@ -2135,7 +2135,7 @@ decode_pow_params(const directory_token_t *tok,
escaped(tok->args[2]));
goto done;
}
- pow_params->suggested_effort = effort;
+ pow_params->suggested_effort = (uint32_t)effort;
/* Parse the expiration time of the PoW params. */
time_t expiration_time = 0;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits