[or-cvs] better warn message for the Content-Length attack

Roger Dingledine arma at seul.org
Thu Oct 14 04:50:35 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	directory.c 
Log Message:
better warn message for the Content-Length attack


Index: directory.c
===================================================================
RCS file: /home/or/cvsroot/src/or/directory.c,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- directory.c	14 Oct 2004 03:44:45 -0000	1.144
+++ directory.c	14 Oct 2004 04:50:33 -0000	1.145
@@ -858,8 +858,7 @@
                              &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.");



More information about the tor-commits mailing list