[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Revert dumb think-o. Just because _some_ INTRODUCE2 cells ...



Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv24743/src/or

Modified Files:
	rendservice.c 
Log Message:
Revert dumb think-o.  Just because _some_ INTRODUCE2 cells are now longer,
doesn't mean we should raise the _minimum_ size.


Index: rendservice.c
===================================================================
RCS file: /home/or/cvsroot/src/or/rendservice.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -d -r1.80 -r1.81
--- rendservice.c	18 Aug 2004 04:48:59 -0000	1.80
+++ rendservice.c	18 Aug 2004 05:05:58 -0000	1.81
@@ -369,7 +369,7 @@
   }
 
   /* min key length plus digest length plus nickname length */
-  if (request_len < DIGEST_LEN+REND_COOKIE_LEN+(HEX_DIGEST_LEN+2)+
+  if (request_len < DIGEST_LEN+REND_COOKIE_LEN+(MAX_NICKNAME_LEN+1)+
       DH_KEY_LEN+42){
     log_fn(LOG_WARN, "Got a truncated INTRODUCE2 cell on circ %d",
            circuit->n_circ_id);