From: rl1987 Date: Fri, 20 Jul 2018 18:13:38 +0000 (+0300) Subject: Scrub IP in channel_tls_process_netinfo_cell() if SafeLogging is on X-Git-Tag: tor-0.3.5.1-alpha~150^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c34f95b89e8c1c86c8564a40fcd1090180dd686;p=thirdparty%2Ftor.git Scrub IP in channel_tls_process_netinfo_cell() if SafeLogging is on --- diff --git a/src/core/or/channeltls.c b/src/core/or/channeltls.c index 87f5a02b75..96898993c1 100644 --- 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) ? - "" : fmt_and_decorate_addr(&my_apparent_addr)); + "" : + safe_str_client(fmt_and_decorate_addr(&my_apparent_addr))); } assert_connection_ok(TO_CONN(chan->conn),time(NULL)); }