mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 06:33:44 +01:00
when somebody uploads too much, say who tried it
This commit is contained in:
parent
9c239eccc9
commit
b73a7600af
@ -2210,8 +2210,10 @@ connection_dir_process_inbuf(dir_connection_t *conn)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (connection_get_inbuf_len(TO_CONN(conn)) > MAX_DIRECTORY_OBJECT_SIZE) {
|
if (connection_get_inbuf_len(TO_CONN(conn)) > MAX_DIRECTORY_OBJECT_SIZE) {
|
||||||
log_warn(LD_HTTP, "Too much data received from directory connection: "
|
log_warn(LD_HTTP,
|
||||||
"denial of service attempt, or you need to upgrade?");
|
"Too much data received from directory connection (%s): "
|
||||||
|
"denial of service attempt, or you need to upgrade?",
|
||||||
|
conn->base_.address);
|
||||||
connection_mark_for_close(TO_CONN(conn));
|
connection_mark_for_close(TO_CONN(conn));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user