]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Revert dumb think-o. Just because _some_ INTRODUCE2 cells are now longer,
authorNick Mathewson <nickm@torproject.org>
Wed, 18 Aug 2004 05:05:58 +0000 (05:05 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 18 Aug 2004 05:05:58 +0000 (05:05 +0000)
doesn't mean we should raise the _minimum_ size.

svn:r2273

src/or/rendservice.c

index b788593c6968bbafc75949925b464821690d4583..a0e70be52fc13aa6936dee91551f7cce16513d0e 100644 (file)
@@ -369,7 +369,7 @@ rend_service_introduce(circuit_t *circuit, const char *request, int request_len)
   }
 
   /* 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);