[or-cvs] bump up header length when the dirserv reads http commands

Roger Dingledine arma at seul.org
Sun Nov 30 09:47:59 UTC 2003


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:
bump up header length when the dirserv reads http commands

Nov 23 12:10:26.556 [warn] fetch_from_buf_http(): headerlen 1487 larger than 1023. Failing.
Nov 23 12:10:26.556 [warn] directory_handle_command(): input too large. Failing.


Index: directory.c
===================================================================
RCS file: /home/or/cvsroot/src/or/directory.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- directory.c	20 Nov 2003 17:49:44 -0000	1.49
+++ directory.c	30 Nov 2003 09:47:57 -0000	1.50
@@ -149,7 +149,7 @@
 }
 
 static int directory_handle_command(connection_t *conn) {
-  char headers[1024];
+  char headers[2048];
   char body[50000]; /* XXX */
   size_t dlen;
   const char *cp;



More information about the tor-commits mailing list