mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
Revert dumb think-o. Just because _some_ INTRODUCE2 cells are now longer,
doesn't mean we should raise the _minimum_ size. svn:r2273
This commit is contained in:
parent
8015cc1eee
commit
6de61bd694
@ -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 */
|
/* 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){
|
DH_KEY_LEN+42){
|
||||||
log_fn(LOG_WARN, "Got a truncated INTRODUCE2 cell on circ %d",
|
log_fn(LOG_WARN, "Got a truncated INTRODUCE2 cell on circ %d",
|
||||||
circuit->n_circ_id);
|
circuit->n_circ_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user