summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-07-25 10:31:44 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-08-24 13:03:28 -0400
commite67f8623f95082341c06c9c70ef664ed7b186483 (patch)
treefae0daf6394b0eb2a83ca2132038b57904eaa0bc /src/or/connection_edge.c
parent9af311630626b920aa74c4fb8d36eb086ebfb8a4 (diff)
downloadtor-e67f8623f95082341c06c9c70ef664ed7b186483.tar.gz
tor-e67f8623f95082341c06c9c70ef664ed7b186483.zip
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>
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 8ef3379c4c..3dd08b6d2a 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -155,7 +155,9 @@ connection_mark_unattached_ap_,(entry_connection_t *conn, int endreason,
* but we should fix it someday anyway. */
if ((edge_conn->on_circuit != NULL || edge_conn->edge_has_sent_end) &&
connection_edge_is_rendezvous_stream(edge_conn)) {
- rend_client_note_connection_attempt_ended(edge_conn->rend_data);
+ if (edge_conn->rend_data) {
+ rend_client_note_connection_attempt_ended(edge_conn->rend_data);
+ }
}
if (base_conn->marked_for_close) {