diff options
author | David Goulet <dgoulet@torproject.org> | 2017-08-31 12:33:52 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-11 16:13:46 -0400 |
commit | 00967cd2a87f8ef4c30bfcebd8eae9c9fb2ed251 (patch) | |
tree | d3ca49f73568a3d733d34f32d5df8841acdf4303 /src/or/hs_client.c | |
parent | 209bfe715cc8c1c59b2578c406749a0d4a5bd8cb (diff) | |
download | tor-00967cd2a87f8ef4c30bfcebd8eae9c9fb2ed251.tar.gz tor-00967cd2a87f8ef4c30bfcebd8eae9c9fb2ed251.zip |
prop224: Log undecodable descriptor when SafeLogging is off
Closes #23304
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_client.c')
-rw-r--r-- | src/or/hs_client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/hs_client.c b/src/or/hs_client.c index 99be058eb7..75cc45b3b7 100644 --- a/src/or/hs_client.c +++ b/src/or/hs_client.c @@ -903,7 +903,10 @@ hs_client_decode_descriptor(const char *desc_str, ret = hs_desc_decode_descriptor(desc_str, subcredential, desc); memwipe(subcredential, 0, sizeof(subcredential)); if (ret < 0) { - log_warn(LD_GENERAL, "Could not parse received descriptor as client"); + log_warn(LD_GENERAL, "Could not parse received descriptor as client."); + if (get_options()->SafeLogging_ == SAFELOG_SCRUB_NONE) { + log_warn(LD_GENERAL, "%s", escaped(desc_str)); + } goto err; } |