aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendcommon.c
diff options
context:
space:
mode:
authorRobert Ransom <rransom.8774@gmail.com>2011-03-14 01:11:30 -0700
committerRobert Ransom <rransom.8774@gmail.com>2011-03-14 01:15:36 -0700
commit96b929e743dc68f706f374c3448ed27c54a9cead (patch)
treeb2fad6d4b8226afcc82a3614c4410a1a34b1524d /src/or/rendcommon.c
parentc90097e74a21ef70d9df2ab70e5b211d7a26dc6d (diff)
downloadtor-96b929e743dc68f706f374c3448ed27c54a9cead.tar.gz
tor-96b929e743dc68f706f374c3448ed27c54a9cead.zip
Log malformed HS descriptor requests at the proper level
This log message should be a 'protocol warning', not a 'warning'.
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r--src/or/rendcommon.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index ff3a4014a8..9acc641026 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -1004,8 +1004,10 @@ rend_cache_lookup_v2_desc_as_dir(const char *desc_id, const char **desc)
tor_assert(rend_cache_v2_dir);
if (base32_decode(desc_id_digest, DIGEST_LEN,
desc_id, REND_DESC_ID_V2_LEN_BASE32) < 0) {
- log_warn(LD_REND, "Descriptor ID contains illegal characters: %s",
- safe_str(desc_id));
+ log_fn(LOG_PROTOCOL_WARN, LD_REND,
+ "Rejecting v2 rendezvous descriptor request -- descriptor ID "
+ "contains illegal characters: %s",
+ safe_str(desc_id));
return -1;
}
/* Lookup descriptor and return. */