mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 13:53:31 +01:00
Add BUG() macro to marked edge reads
This will give us a full stacktrace.
This commit is contained in:
parent
176f0929bb
commit
ff59e2f490
@ -2333,7 +2333,7 @@ connection_edge_package_raw_inbuf(edge_connection_t *conn, int package_partial,
|
||||
|
||||
tor_assert(conn);
|
||||
|
||||
if (conn->base_.marked_for_close) {
|
||||
if (BUG(conn->base_.marked_for_close)) {
|
||||
log_warn(LD_BUG,
|
||||
"called on conn that's already marked for close at %s:%d.",
|
||||
conn->base_.marked_for_close_file, conn->base_.marked_for_close);
|
||||
|
Loading…
Reference in New Issue
Block a user