소스 검색

Log malformed hostnames in socks5 request respecting SafeLogging

Andreas Stieger 8 년 전
부모
커밋
19df037e53
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 0
      changes/malformed-hostname-safe-logging
  2. 1 1
      src/or/buffers.c

+ 3 - 0
changes/malformed-hostname-safe-logging

@@ -0,0 +1,3 @@
+  o Minor bugfixes:
+    - When logging malformed hostnames in socks5 requests, respect
+      SafeLogging configuration

+ 1 - 1
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)