]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
better warn message for the Content-Length attack
authorRoger Dingledine <arma@torproject.org>
Thu, 14 Oct 2004 04:50:33 +0000 (04:50 +0000)
committerRoger Dingledine <arma@torproject.org>
Thu, 14 Oct 2004 04:50:33 +0000 (04:50 +0000)
svn:r2495

src/or/directory.c

index e0ddcc37e923b460a4edc15f6108024763e7b7e4..e221a9a42dbb5af1a3c062565565ca77048abfd6 100644 (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.");