mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 23:21:38 +01:00
hs: Only note a connection attempt with a valid rend_data
For now, prop224 doesn't have a mechanism to note down connection attempts so we only do it for legacy system using rend_data. Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
9af3116306
commit
e67f8623f9
1 changed files with 3 additions and 1 deletions
|
@ -155,8 +155,10 @@ connection_mark_unattached_ap_,(entry_connection_t *conn, int endreason,
|
||||||
* but we should fix it someday anyway. */
|
* but we should fix it someday anyway. */
|
||||||
if ((edge_conn->on_circuit != NULL || edge_conn->edge_has_sent_end) &&
|
if ((edge_conn->on_circuit != NULL || edge_conn->edge_has_sent_end) &&
|
||||||
connection_edge_is_rendezvous_stream(edge_conn)) {
|
connection_edge_is_rendezvous_stream(edge_conn)) {
|
||||||
|
if (edge_conn->rend_data) {
|
||||||
rend_client_note_connection_attempt_ended(edge_conn->rend_data);
|
rend_client_note_connection_attempt_ended(edge_conn->rend_data);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (base_conn->marked_for_close) {
|
if (base_conn->marked_for_close) {
|
||||||
/* This call will warn as appropriate. */
|
/* This call will warn as appropriate. */
|
||||||
|
|
Loading…
Add table
Reference in a new issue