mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
better warn message for the Content-Length attack
svn:r2495
This commit is contained in:
parent
55b811a259
commit
95644480c5
@ -858,8 +858,7 @@ static int directory_handle_command(connection_t *conn) {
|
||||
&headers, MAX_HEADERS_SIZE,
|
||||
&body, &body_len, MAX_BODY_SIZE)) {
|
||||
case -1: /* overflow */
|
||||
log_fn(LOG_WARN,"input too large. Failing.");
|
||||
/*XXX009 needs a better warn message */
|
||||
log_fn(LOG_WARN,"Invalid input. Closing.");
|
||||
return -1;
|
||||
case 0:
|
||||
log_fn(LOG_DEBUG,"command not all here yet.");
|
||||
|
Loading…
Reference in New Issue
Block a user