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
This commit is contained in:
Nick Mathewson
2008-07-23 12:55:55 +00:00
parent 29795999a0
commit 087094961b
5 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -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. "