aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-03-15 11:09:22 -0400
committerNick Mathewson <nickm@torproject.org>2017-03-15 11:09:22 -0400
commit3b2d6da45344774d58b97f709c77fb35d26ba180 (patch)
treef9d476a2cb0e8491a2513276f50c52e8e02c21b0 /src
parent6004dd2162633d3af526c5e3cc7dda9326e1c95e (diff)
parent567a56ae2e59aef26b31829f300c5700c7923f7b (diff)
downloadtor-3b2d6da45344774d58b97f709c77fb35d26ba180.tar.gz
tor-3b2d6da45344774d58b97f709c77fb35d26ba180.zip
Merge branch 'maint-0.3.0'
Diffstat (limited to 'src')
-rw-r--r--src/or/onion.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/onion.c b/src/or/onion.c
index 42b9ca4b18..b3898d4085 100644
--- a/src/or/onion.c
+++ b/src/or/onion.c
@@ -238,7 +238,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;
}