]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Log the source of a rejected POSTed v3 vote
authorRobert Ransom <rransom.8774@gmail.com>
Tue, 15 Mar 2011 16:13:25 +0000 (09:13 -0700)
committerRobert Ransom <rransom.8774@gmail.com>
Tue, 15 Mar 2011 16:16:58 +0000 (09:16 -0700)
Related to ticket 2683.

changes/bug2683a [new file with mode: 0644]
src/or/directory.c

diff --git a/changes/bug2683a b/changes/bug2683a
new file mode 100644 (file)
index 0000000..2fe308b
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor features
+    - Log the source of a rejected POSTed v3 networkstatus vote.
+
index f8d587f35c889bfc0082e1704e397ce534526395..00de1f2f80f065dd5e31c53312c23b3eb73a4ba9 100644 (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;