summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-12-16 19:16:07 -0500
committerNick Mathewson <nickm@torproject.org>2015-12-16 19:16:07 -0500
commite6be486aea1a102d73c4432340c533eea80740e1 (patch)
tree5fe3d21c6600efb9f1336e05c468d6c0e50c7a10 /src/or/connection.c
parent24fcb6adbb3896395edda38d6ecccb6ad53bddbd (diff)
downloadtor-e6be486aea1a102d73c4432340c533eea80740e1.tar.gz
tor-e6be486aea1a102d73c4432340c533eea80740e1.zip
More emergency-check code for un-removed pending entry conns
This might also be what #17752 needs.
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index d6e5fcb277..b4cd4cdddb 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -678,6 +678,13 @@ connection_free,(connection_t *conn))
if (conn->type == CONN_TYPE_CONTROL) {
connection_control_closed(TO_CONTROL_CONN(conn));
}
+#if 1
+ /* DEBUGGING */
+ if (conn->type == CONN_TYPE_AP) {
+ connection_ap_warn_and_unmark_if_pending_circ(TO_ENTRY_CONN(conn),
+ "connection_free");
+ }
+#endif
connection_unregister_events(conn);
connection_free_(conn);
}