mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Patch from lark: if we get two extend cells for the same circuit id, drop the second. Previously, we had leaked an extend_info if the target connection was not open when the second arrived.
svn:r18668
This commit is contained in:
@@ -735,6 +735,11 @@ circuit_extend(cell_t *cell, circuit_t *circ)
|
||||
"n_conn already set. Bug/attack. Closing.");
|
||||
return -1;
|
||||
}
|
||||
if (circ->n_hop) {
|
||||
log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL,
|
||||
"conn to next hop already launched. Bug/attack. Closing.");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!server_mode(get_options())) {
|
||||
log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL,
|
||||
|
||||
Reference in New Issue
Block a user