diff options
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 12db9dd7c5..42da9e6fe0 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -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, |