summaryrefslogtreecommitdiff
path: root/src/feature/hs
diff options
context:
space:
mode:
authorSuphanat Chunhapanya <haxx.pop@gmail.com>2019-01-15 12:16:23 +0700
committerSuphanat Chunhapanya <haxx.pop@gmail.com>2019-01-24 04:31:18 +0700
commit238a9080c6e80856145210a374b35e613d4cb11e (patch)
tree315e8008b755f02ba4150bd217db8caaa0b56264 /src/feature/hs
parent8de735f0681970ff688cb5e775dae812ed27aa62 (diff)
downloadtor-238a9080c6e80856145210a374b35e613d4cb11e.tar.gz
tor-238a9080c6e80856145210a374b35e613d4cb11e.zip
hs-v3: add an option param to safe log functions
We add an option param to safe_str and safe_str_client because in some case we need to use those functions before global_options is set.
Diffstat (limited to 'src/feature/hs')
-rw-r--r--src/feature/hs/hs_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/hs/hs_client.c b/src/feature/hs/hs_client.c
index e04f0cc0c3..1f026a20d1 100644
--- a/src/feature/hs/hs_client.c
+++ b/src/feature/hs/hs_client.c
@@ -1646,7 +1646,7 @@ hs_config_client_authorization(const or_options_t *options,
if (digest256map_get(auths, identity_pk.pubkey)) {
log_warn(LD_REND, "Duplicate authorization for the same hidden "
"service address %s.",
- safe_str_client(auth->onion_address));
+ safe_str_client_opts(options, auth->onion_address));
client_service_authorization_free(auth);
goto end;
}