mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
log how big the failed rend descriptor is, and if it's small, log
a base16 of the whole thing. svn:r5678
This commit is contained in:
parent
14ea2e0b56
commit
2904c6f024
@ -1556,7 +1556,13 @@ directory_handle_command_post(connection_t *conn, char *headers,
|
||||
if (!strcmpstart(url,"/tor/rendezvous/publish")) {
|
||||
/* rendezvous descriptor post */
|
||||
if (rend_cache_store(body, body_len) < 0) {
|
||||
notice(LD_DIRSERV,"Rejected rend descriptor from %s.", origin);
|
||||
char tmp[1024*2+1];
|
||||
notice(LD_DIRSERV,"Rejected rend descriptor (length %d) from %s.",
|
||||
(int)body_len, origin);
|
||||
if (body_len <= 1024) {
|
||||
base16_encode(tmp, sizeof(tmp), body, body_len);
|
||||
notice(LD_DIRSERV,"Body was: %s", tmp);
|
||||
}
|
||||
write_http_status_line(conn, 400, "Invalid service descriptor rejected");
|
||||
} else {
|
||||
write_http_status_line(conn, 200, "Service descriptor stored");
|
||||
|
Loading…
Reference in New Issue
Block a user