Ver código fonte

better warn message for the Content-Length attack

svn:r2495
Roger Dingledine 21 anos atrás
pai
commit
95644480c5
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      src/or/directory.c

+ 1 - 2
src/or/directory.c

@@ -858,8 +858,7 @@ static int directory_handle_command(connection_t *conn) {
                              &headers, MAX_HEADERS_SIZE,
                              &headers, MAX_HEADERS_SIZE,
                              &body, &body_len, MAX_BODY_SIZE)) {
                              &body, &body_len, MAX_BODY_SIZE)) {
     case -1: /* overflow */
     case -1: /* overflow */
-      log_fn(LOG_WARN,"input too large. Failing.");
+      log_fn(LOG_WARN,"Invalid input. Closing.");
-/*XXX009 needs a better warn message */
       return -1;
       return -1;
     case 0:
     case 0:
       log_fn(LOG_DEBUG,"command not all here yet.");
       log_fn(LOG_DEBUG,"command not all here yet.");