commit 9c34f95b89e8c1c86c8564a40fcd1090180dd686
parent 9ae35975402a823a420cd5efb81a1c3a76f6c4d6
Author: rl1987 <rl1987@sdf.lonestar.org>
Date: Fri, 20 Jul 2018 21:13:38 +0300
Scrub IP in channel_tls_process_netinfo_cell() if SafeLogging is on
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/core/or/channeltls.c b/src/core/or/channeltls.c
@@ -1837,7 +1837,8 @@ channel_tls_process_netinfo_cell(cell_t *cell, channel_tls_t *chan)
(int)(chan->conn->link_proto),
hex_str(identity_digest, DIGEST_LEN),
tor_addr_is_null(&my_apparent_addr) ?
- "<none>" : fmt_and_decorate_addr(&my_apparent_addr));
+ "<none>" :
+ safe_str_client(fmt_and_decorate_addr(&my_apparent_addr)));
}
assert_connection_ok(TO_CONN(chan->conn),time(NULL));
}