better warn message for the Content-Length attack

svn:r2495
This commit is contained in:
Roger Dingledine 2004-10-14 04:50:33 +00:00
parent 55b811a259
commit 95644480c5

View File

@ -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.");