]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add another safe_str_client to fix bug 17419
authorNick Mathewson <nickm@torproject.org>
Tue, 12 Jan 2016 15:42:01 +0000 (10:42 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 12 Jan 2016 15:42:01 +0000 (10:42 -0500)
changes/bug17419 [new file with mode: 0644]
src/or/buffers.c

diff --git a/changes/bug17419 b/changes/bug17419
new file mode 100644 (file)
index 0000000..8ad8edd
--- /dev/null
@@ -0,0 +1,4 @@
+
+  o Minor bugfixes:
+    - When logging a malformed hostname received through socks4, scrub it
+      if SafeLogging says we should. Fixes bug 17419; bugfix on 0.1.1.16-rc.
index 4696bec8f4ed98d625c3723d950f16a6d6fe9554..cdb499b8da00b543e27c3182c2ce371ddad68d69 100644 (file)
@@ -1945,7 +1945,7 @@ parse_socks(const char *data, size_t datalen, socks_request_t *req,
         log_warn(LD_PROTOCOL,
                  "Your application (using socks4 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 (authend != authstart) {