summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-07-07 12:19:04 -0400
committerNick Mathewson <nickm@torproject.org>2009-07-07 12:19:04 -0400
commit258b980331f4a6c208144b80df4d4ce7de5caa58 (patch)
tree939fc8b463ff1acc4735c6391d78a2354f5355a8 /src/or
parent2c221e923b1ff7d8693d8a8b9e6bb5474956349e (diff)
downloadtor-258b980331f4a6c208144b80df4d4ce7de5caa58.tar.gz
tor-258b980331f4a6c208144b80df4d4ce7de5caa58.zip
Make "Invalid onion hostname" msg respect SafeLogging.
Patch by Roger; fixes bug 1027.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/connection_edge.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 1ef87dbffa..d699591cdc 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -1484,7 +1484,8 @@ connection_ap_handshake_rewrite_and_attach(edge_connection_t *conn,
addresstype = parse_extended_hostname(socks->address);
if (addresstype == BAD_HOSTNAME) {
- log_warn(LD_APP, "Invalid hostname %s; rejecting", socks->address);
+ log_warn(LD_APP, "Invalid onion hostname %s; rejecting",
+ safe_str(socks->address));
control_event_client_status(LOG_WARN, "SOCKS_BAD_HOSTNAME HOSTNAME=%s",
escaped(socks->address));
connection_mark_unattached_ap(conn, END_STREAM_REASON_TORPROTOCOL);