aboutsummaryrefslogtreecommitdiff
path: root/src/feature/control/control_cmd.c
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2020-07-08 20:12:56 -0700
committerNeel Chauhan <neel@neelc.org>2020-07-08 20:22:02 -0700
commit60f699c859875b92602819c47c4a673343bee5fb (patch)
tree4617246e48abf697a3e23a7c821a50fa60484935 /src/feature/control/control_cmd.c
parente4bfa734a60555a1871a008c2a125fe55d564aa1 (diff)
downloadtor-60f699c859875b92602819c47c4a673343bee5fb.tar.gz
tor-60f699c859875b92602819c47c4a673343bee5fb.zip
Send a control port event when a stream enters the AP_CONN_STATE_CONTROLLER_WAIT state
Diffstat (limited to 'src/feature/control/control_cmd.c')
-rw-r--r--src/feature/control/control_cmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/feature/control/control_cmd.c b/src/feature/control/control_cmd.c
index a8926c0b79..6dc556a579 100644
--- a/src/feature/control/control_cmd.c
+++ b/src/feature/control/control_cmd.c
@@ -982,8 +982,7 @@ handle_control_attachstream(control_connection_t *conn,
edge_conn->end_reason = 0;
if (tmpcirc)
circuit_detach_stream(tmpcirc, edge_conn);
- CONNECTION_AP_EXPECT_NONPENDING(ap_conn);
- TO_CONN(edge_conn)->state = AP_CONN_STATE_CONTROLLER_WAIT;
+ connection_entry_set_controller_wait(ap_conn);
}
if (circ && (circ->base_.state != CIRCUIT_STATE_OPEN)) {