]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Scrub IP in channel_tls_process_netinfo_cell() if SafeLogging is on
authorrl1987 <rl1987@sdf.lonestar.org>
Fri, 20 Jul 2018 18:13:38 +0000 (21:13 +0300)
committerrl1987 <rl1987@sdf.lonestar.org>
Fri, 20 Jul 2018 18:13:38 +0000 (21:13 +0300)
src/core/or/channeltls.c

index 87f5a02b750785432b38c9a3a9d79bf7339e07b7..96898993c1b86535cf6f7dcb5dff77f3a2da8ce1 100644 (file)
@@ -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));
 }