aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
Diffstat (limited to 'src/or')
-rw-r--r--src/or/connection_edge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 133257579..0f2736597 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -148,6 +148,8 @@ int connection_edge_send_command(connection_t *fromconn, circuit_t *circ, int re
if(!circ) {
log_fn(LOG_WARN,"no circ. Closing.");
+ assert(fromconn);
+ fromconn->marked_for_close = 1;
return -1;
}