aboutsummaryrefslogtreecommitdiff
path: root/src/or/buffers.c
diff options
context:
space:
mode:
authorAndreas Stieger <astieger@suse.com>2015-08-24 01:04:44 +0200
committerNick Mathewson <nickm@torproject.org>2015-08-25 09:36:34 -0400
commit19df037e53331ae528b876f225be08f198e0f8b6 (patch)
tree9680b299929b2e21cb67ad8a638e8b77e6c702e7 /src/or/buffers.c
parent80a45835c4f8219dbbce20bed7ef534ba4718321 (diff)
downloadtor-19df037e53331ae528b876f225be08f198e0f8b6.tar.gz
tor-19df037e53331ae528b876f225be08f198e0f8b6.zip
Log malformed hostnames in socks5 request respecting SafeLogging
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r--src/or/buffers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index 2d7dd937d8..85fcbc64e8 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -1842,7 +1842,7 @@ parse_socks(const char *data, size_t datalen, socks_request_t *req,
log_warn(LD_PROTOCOL,
"Your application (using socks5 to port %d) gave Tor "
"a malformed hostname: %s. Rejecting the connection.",
- req->port, escaped(req->address));
+ req->port, escaped_safe_str_client(req->address));
return -1;
}
if (log_sockstype)