aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2009-11-21 23:09:24 -0500
committerRoger Dingledine <arma@torproject.org>2009-11-21 23:09:24 -0500
commitfdd58f3bd5daa4a8982244d0b956fcfebfd91b6d (patch)
treebe9b342e100b43bc26e3c426decb7118c280137b /src/or/directory.c
parent4f8b36a1e2dbcfeaf0c5c31a92aa0f26f365b890 (diff)
downloadtor-fdd58f3bd5daa4a8982244d0b956fcfebfd91b6d.tar
tor-fdd58f3bd5daa4a8982244d0b956fcfebfd91b6d.tar.gz
If somebody tries to overflow my dirport, don't log his IP by default.
aka Fix an instance where a Tor directory mirror might accidentally log the IP address of a misbehaving Tor client. Bugfix on 0.1.0.1-rc.
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 1d3c43ec0..427f5d8c0 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -3242,8 +3242,8 @@ directory_handle_command(dir_connection_t *conn)
&body, &body_len, MAX_DIR_UL_SIZE, 0)) {
case -1: /* overflow */
log_warn(LD_DIRSERV,
- "Invalid input from address '%s'. Closing.",
- conn->_base.address);
+ "Request too large from address '%s' to DirPort. Closing.",
+ safe_str(conn->_base.address));
return -1;
case 0:
log_debug(LD_DIRSERV,"command not all here yet.");