summaryrefslogtreecommitdiff
path: root/src/feature
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2023-07-31 14:12:39 +0000
committerMike Perry <mikeperry-git@torproject.org>2023-07-31 14:12:39 +0000
commit74d6fd534a4619f73b642f12d0fa9d00f247c804 (patch)
treecd2622fb948c2f5fb883b05a57cb09ae0d441c11 /src/feature
parent4667195deded5e34d93ef9984ff091b2ae822fbb (diff)
downloadtor-74d6fd534a4619f73b642f12d0fa9d00f247c804.tar.gz
tor-74d6fd534a4619f73b642f12d0fa9d00f247c804.zip
Bug 40828: Add more log scrubbing to protocol warnings
Diffstat (limited to 'src/feature')
-rw-r--r--src/feature/hs/hs_common.c2
-rw-r--r--src/feature/relay/relay_find_addr.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/hs/hs_common.c b/src/feature/hs/hs_common.c
index 6547372161..cd7e4890d1 100644
--- a/src/feature/hs/hs_common.c
+++ b/src/feature/hs/hs_common.c
@@ -1680,7 +1680,7 @@ hs_get_extend_info_from_lspecs(const smartlist_t *lspecs,
if (!extend_info_addr_is_allowed(&ap.addr)) {
log_fn(LOG_PROTOCOL_WARN, LD_REND,
"Requested address is private and we are not allowed to extend to "
- "it: %s:%u", fmt_addr(&ap.addr), ap.port);
+ "it: %s:%u", safe_str(fmt_addr(&ap.addr)), ap.port);
goto done;
}
diff --git a/src/feature/relay/relay_find_addr.c b/src/feature/relay/relay_find_addr.c
index 5a32283a7b..106117b236 100644
--- a/src/feature/relay/relay_find_addr.c
+++ b/src/feature/relay/relay_find_addr.c
@@ -78,7 +78,7 @@ relay_address_new_suggestion(const tor_addr_t *suggested_addr,
/* Do not believe anyone who says our address is their address. */
log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL,
"A relay endpoint %s is telling us that their address is ours.",
- fmt_addr(peer_addr));
+ safe_str(fmt_addr(peer_addr)));
return;
}