diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-05-01 16:08:23 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-05-01 16:08:23 -0400 |
commit | 465448e659e6cbaecc1494b5cf270f556e104bd4 (patch) | |
tree | 55653c271bb299802ab1f52a28be26f7e975619b /src/or/rendclient.c | |
parent | c486ef57a320b840fb50b184ee4ee806d9715888 (diff) | |
parent | aadb99e5f906a7b8aed8b6c0d995690699bdbfee (diff) | |
download | tor-465448e659e6cbaecc1494b5cf270f556e104bd4.tar.gz tor-465448e659e6cbaecc1494b5cf270f556e104bd4.zip |
Merge branch 'dgoulet_bug22042_031_01_squashed'
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r-- | src/or/rendclient.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c index 1ae03ed408..9bc2d6289d 100644 --- a/src/or/rendclient.c +++ b/src/or/rendclient.c @@ -724,6 +724,9 @@ directory_get_from_hs_dir(const char *desc_id, hs_dir = pick_hsdir(desc_id, desc_id_base32); if (!hs_dir) { /* No suitable hs dir can be found, stop right now. */ + control_event_hs_descriptor_failed(rend_query, NULL, "QUERY_NO_HSDIR"); + control_event_hs_descriptor_content(rend_data_get_address(rend_query), + desc_id_base32, NULL, NULL); return 0; } } @@ -744,6 +747,9 @@ directory_get_from_hs_dir(const char *desc_id, REND_DESC_COOKIE_LEN, 0)<0) { log_warn(LD_BUG, "Could not base64-encode descriptor cookie."); + control_event_hs_descriptor_failed(rend_query, hsdir_fp, "BAD_DESC"); + control_event_hs_descriptor_content(rend_data_get_address(rend_query), + desc_id_base32, hsdir_fp, NULL); return 0; } /* Remove == signs. */ |