aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-05 21:40:22 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-05 21:40:22 +0000
commit62b7ae6c9d1d02f08540ff968daa21369eadfaa6 (patch)
tree823b504179222ceec16be128e2e761bbaa517aee /src/or
parent283593ca1b2f0e4a0f67ede35cf1f8c243792c68 (diff)
downloadtor-62b7ae6c9d1d02f08540ff968daa21369eadfaa6.tar
tor-62b7ae6c9d1d02f08540ff968daa21369eadfaa6.tar.gz
More symbolic constants for checking rendezvous1 cell lengths
svn:r1495
Diffstat (limited to 'src/or')
-rw-r--r--src/or/rendmid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/rendmid.c b/src/or/rendmid.c
index 80ebbbb38..5d795cf4b 100644
--- a/src/or/rendmid.c
+++ b/src/or/rendmid.c
@@ -219,10 +219,10 @@ rend_mid_rendezvous(circuit_t *circ, const char *request, int request_len)
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;
}