Commit ec5fe412 authored by Nick Mathewson's avatar Nick Mathewson 🦀
Browse files

Avoid a double-mark bug when makring a pending circuit as "too old"

Fixes bug 20059; bugfix on 0.1.0.1-rc.
parent 4488c319
Loading
Loading
Loading
Loading

changes/bug20059

0 → 100644
+3 −0
Original line number Diff line number Diff line
  o Minor bugfixes (relay):
    - Avoid a double-marked-circuit warning that can happen when we receive
      DESTROY cells under heavy load. Fixes bug 20059; bugfix on 0.1.0.1-rc.
+3 −1
Original line number Diff line number Diff line
@@ -184,8 +184,10 @@ 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.");
    if (! TO_CIRCUIT(circ)->marked_for_close) {
      circuit_mark_for_close(TO_CIRCUIT(circ), END_CIRC_REASON_RESOURCELIMIT);
    }
  }
  return 0;
}