]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make the thing compile.
authorMike Perry <mikeperry-git@torproject.org>
Wed, 13 Jul 2022 23:41:10 +0000 (23:41 +0000)
committerMicah Elizabeth Scott <beth@torproject.org>
Wed, 10 May 2023 14:37:11 +0000 (07:37 -0700)
src/feature/hs/hs_circuit.c
src/feature/hs/hs_descriptor.c

index 6b8d87351c45857de1237c55a63c0b9510eb1d04..948dab6933bdcca15ebc1f95f5cbf4aca9664db5 100644 (file)
@@ -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;
     }
index 27152a8bf0aedb05e2e8d57e84a49cbc43bd27f4..816946555baf71e3b795378617169e26e10a3432 100644 (file)
@@ -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;