aboutsummaryrefslogtreecommitdiff
path: root/src/or/command.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-07-23 12:55:55 +0000
committerNick Mathewson <nickm@torproject.org>2008-07-23 12:55:55 +0000
commit087094961b0ba75435fe5bdfab0788b0e3b5293c (patch)
tree59e0bfe483f988021b0e5c222740d7b67ea5e09d /src/or/command.c
parent29795999a0ea917d2f3438b1e8c6debe7b04df80 (diff)
downloadtor-087094961b0ba75435fe5bdfab0788b0e3b5293c.tar.gz
tor-087094961b0ba75435fe5bdfab0788b0e3b5293c.zip
r17302@aud-055: nickm | 2008-07-23 14:55:28 +0200
Never allow a circuit to be created with the same circid as a circuit that has been marked for close. May be a fix for bug 779. Needs testing. Backport candidate. svn:r16136
Diffstat (limited to 'src/or/command.c')
-rw-r--r--src/or/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/command.c b/src/or/command.c
index 79e6133f19..4a08842396 100644
--- a/src/or/command.c
+++ b/src/or/command.c
@@ -252,7 +252,7 @@ command_process_create_cell(cell_t *cell, or_connection_t *conn)
return;
}
- if (circuit_get_by_circid_orconn(cell->circ_id, conn)) {
+ if (circuit_id_in_use_on_orconn(cell->circ_id, conn)) {
routerinfo_t *router = router_get_by_digest(conn->identity_digest);
log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL,
"Received CREATE cell (circID %d) for known circ. "