Commit 62b7ae6c authored by Nick Mathewson's avatar Nick Mathewson 🐘
Browse files

More symbolic constants for checking rendezvous1 cell lengths


svn:r1495
parent 283593ca
Loading
Loading
Loading
Loading
+3 −3
Changes for src/or/rendmid.c: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -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;
  }