aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/circuituse.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2018-12-04 14:09:15 -0500
committerDavid Goulet <dgoulet@torproject.org>2018-12-04 14:10:00 -0500
commit00b59d92817f34c60fe9bc1f8b72b6e81ae1c431 (patch)
tree61faf25a34f33ad3a6959657675f267dae78ed08 /src/core/or/circuituse.c
parentd0682fe0f190ce55973d86ec92978aa6b3f61f1f (diff)
downloadtor-00b59d92817f34c60fe9bc1f8b72b6e81ae1c431.tar.gz
tor-00b59d92817f34c60fe9bc1f8b72b6e81ae1c431.zip
conn: Use connection_ap_mark_as_waiting_for_renddesc()
Use the helper function connection_ap_mark_as_waiting_for_renddesc() introduced in previous commit everywhere in the code where an AP connection state is transitionned to AP_CONN_STATE_RENDDESC_WAIT. Part of #28669 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/or/circuituse.c')
-rw-r--r--src/core/or/circuituse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/or/circuituse.c b/src/core/or/circuituse.c
index 088358a4d6..7ea37fb3b5 100644
--- a/src/core/or/circuituse.c
+++ b/src/core/or/circuituse.c
@@ -2377,8 +2377,7 @@ circuit_get_open_circ_or_launch(entry_connection_t *conn,
} else {
hs_client_refetch_hsdesc(&edge_conn->hs_ident->identity_pk);
}
- connection_ap_mark_as_non_pending_circuit(conn);
- ENTRY_TO_CONN(conn)->state = AP_CONN_STATE_RENDDESC_WAIT;
+ connection_ap_mark_as_waiting_for_renddesc(conn);
return 0;
}
log_info(LD_REND,"Chose %s as intro point for '%s'.",