mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 15:10:48 +01:00
prop224: Log undecodable descriptor when SafeLogging is off
Closes #23304 Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
209bfe715c
commit
00967cd2a8
1 changed files with 4 additions and 1 deletions
|
@ -903,7 +903,10 @@ hs_client_decode_descriptor(const char *desc_str,
|
||||||
ret = hs_desc_decode_descriptor(desc_str, subcredential, desc);
|
ret = hs_desc_decode_descriptor(desc_str, subcredential, desc);
|
||||||
memwipe(subcredential, 0, sizeof(subcredential));
|
memwipe(subcredential, 0, sizeof(subcredential));
|
||||||
if (ret < 0) {
|
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;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue