diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-08-01 11:28:36 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-01 11:28:36 -0400 |
commit | 8500f0e4e179280ebb8d6c1f3342eff21a4fdac2 (patch) | |
tree | 6a7cc90a555a6ce6f2ebb6ee06ea090216f2b26c /src/or/onion.c | |
parent | 2b94b0ea721f2bd0127d097860ef64b915e2781a (diff) | |
parent | ec5fe41209add4b216029466774a6b7e833210ef (diff) | |
download | tor-8500f0e4e179280ebb8d6c1f3342eff21a4fdac2.tar.gz tor-8500f0e4e179280ebb8d6c1f3342eff21a4fdac2.zip |
Merge remote-tracking branch 'public/bug20059_024_v2' into maint-0.2.9
Diffstat (limited to 'src/or/onion.c')
-rw-r--r-- | src/or/onion.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/onion.c b/src/or/onion.c index a987883802..4b803a785c 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -235,7 +235,9 @@ onion_pending_add(or_circuit_t *circ, create_cell_t *onionskin) onion_queue_entry_remove(head); log_info(LD_CIRC, "Circuit create request is too old; canceling due to overload."); - circuit_mark_for_close(TO_CIRCUIT(circ), END_CIRC_REASON_RESOURCELIMIT); + if (! TO_CIRCUIT(circ)->marked_for_close) { + circuit_mark_for_close(TO_CIRCUIT(circ), END_CIRC_REASON_RESOURCELIMIT); + } } return 0; } |