[tor-commits] [tor] 03/10: Add BUG() macro to marked edge reads
gitolite role
git at cupani.torproject.org
Wed Jun 14 13:46:24 UTC 2023
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main
in repository tor.
commit ff59e2f490c2ee2f119bfe85e7d95cd7e0bb51fa
Author: Mike Perry <mikeperry-git at torproject.org>
AuthorDate: Tue Jun 6 16:21:20 2023 +0000
Add BUG() macro to marked edge reads
This will give us a full stacktrace.
---
src/core/or/relay.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the tor-commits
mailing list