Log the source of a rejected POSTed v3 vote

Related to ticket 2683.
This commit is contained in:
Robert Ransom
2011-03-15 09:13:25 -07:00
parent b97d9abd09
commit 3af59dcaee
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
o Minor features
- Log the source of a rejected POSTed v3 networkstatus vote.
+2
View File
@@ -3259,6 +3259,8 @@ directory_handle_command_post(dir_connection_t *conn, const char *headers,
write_http_status_line(conn, status, "Vote stored");
} else {
tor_assert(msg);
log_warn(LD_DIRSERV, "Rejected vote from %s (\"%s\").",
conn->_base.address, msg);
write_http_status_line(conn, status, msg);
}
goto done;