diff options
author | Mike Perry <mikeperry-git@torproject.org> | 2023-06-06 16:21:20 +0000 |
---|---|---|
committer | Mike Perry <mikeperry-git@torproject.org> | 2023-06-09 16:24:03 +0000 |
commit | ff59e2f490c2ee2f119bfe85e7d95cd7e0bb51fa (patch) | |
tree | da4894557b87d5f3dfd92121c5e0cb347ca08b83 /src/core | |
parent | 176f0929bb3c8ffe2765fc47a24ee44a66ffd217 (diff) | |
download | tor-ff59e2f490c2ee2f119bfe85e7d95cd7e0bb51fa.tar.gz tor-ff59e2f490c2ee2f119bfe85e7d95cd7e0bb51fa.zip |
Add BUG() macro to marked edge reads
This will give us a full stacktrace.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/or/relay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/or/relay.c b/src/core/or/relay.c index 20336dffaf..247024ebc7 100644 --- a/src/core/or/relay.c +++ b/src/core/or/relay.c @@ -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); |