aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@ev0ke.net>2016-02-17 14:34:20 -0500
committerNick Mathewson <nickm@torproject.org>2016-02-17 15:30:46 -0500
commit13a857183456307bf3e97aa8338219ca245b1040 (patch)
tree133f43e42b9cf32f106bdef2497b8bd0ef160fc0 /src/or/directory.c
parent549493846782efa7d6655317844782b6acade1b2 (diff)
downloadtor-13a857183456307bf3e97aa8338219ca245b1040.tar.gz
tor-13a857183456307bf3e97aa8338219ca245b1040.zip
Add onion address to the HS_DESC UPLOADED event
Fixes #16023 Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index ecf6da8ac1..6c8b6a248a 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -2364,16 +2364,21 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
if (conn->base_.purpose == DIR_PURPOSE_UPLOAD_RENDDESC_V2) {
#define SEND_HS_DESC_UPLOAD_FAILED_EVENT(reason) ( \
control_event_hs_descriptor_upload_failed(conn->identity_digest, \
+ conn->rend_data->onion_address, \
reason) )
log_info(LD_REND,"Uploaded rendezvous descriptor (status %d "
"(%s))",
status_code, escaped(reason));
+ /* Without the rend data, we'll have a problem identifying what has been
+ * uploaded for which service. */
+ tor_assert(conn->rend_data);
switch (status_code) {
case 200:
log_info(LD_REND,
"Uploading rendezvous descriptor: finished with status "
"200 (%s)", escaped(reason));
- control_event_hs_descriptor_uploaded(conn->identity_digest);
+ control_event_hs_descriptor_uploaded(conn->identity_digest,
+ conn->rend_data->onion_address);
rend_service_desc_has_uploaded(conn->rend_data);
break;
case 400: