[or-cvs] More symbolic constants for checking rendezvous1 cell lengths
Nick Mathewson
nickm at seul.org
Mon Apr 5 21:40:24 UTC 2004
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv25027/src/or
Modified Files:
rendmid.c
Log Message:
More symbolic constants for checking rendezvous1 cell lengths
Index: rendmid.c
===================================================================
RCS file: /home/or/cvsroot/src/or/rendmid.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- rendmid.c 5 Apr 2004 21:15:14 -0000 1.13
+++ rendmid.c 5 Apr 2004 21:40:22 -0000 1.14
@@ -219,10 +219,10 @@
goto err;
}
- if (request_len < 20+128+20) {
+ if (request_len != REND_COOKIE_LEN+DH_KEY_LEN+DIGEST_LEN) {
log_fn(LOG_WARN,
- "Rejecting impossibly short RENDEZVOUS1 cell on circuit %d",
- circ->p_circ_id);
+ "Rejecting RENDEZVOUS1 cell with bad length (%d) on circuit %d",
+ request_len, circ->p_circ_id);
goto err;
}
More information about the tor-commits
mailing list