summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2017-05-10 20:03:07 -0400
committerRoger Dingledine <arma@torproject.org>2017-05-10 20:03:07 -0400
commit8f1ddf0cd2b10f75d895c8d55bae6c2cbd60c050 (patch)
tree8cd1069e3605baa06ce0a2a88f97fa15c0c3fb2c /src/or/directory.c
parent466e27feaebf0bb7a1c906b733a0da2328b21330 (diff)
downloadtor-8f1ddf0cd2b10f75d895c8d55bae6c2cbd60c050.tar.gz
tor-8f1ddf0cd2b10f75d895c8d55bae6c2cbd60c050.zip
Remove unused "ROUTER_ADDED_NOTIFY_GENERATOR" internal value
We already have a way to return a 400 response code along with a personalized message response for the uploader. Resolves ticket 22213.
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index c1db40ef22..da92e0f897 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -4467,14 +4467,7 @@ directory_handle_command_post,(dir_connection_t *conn, const char *headers,
conn->base_.address, &msg);
tor_assert(msg);
- if (r == ROUTER_ADDED_NOTIFY_GENERATOR) {
- /* Accepted with a message. */
- log_info(LD_DIRSERV,
- "Problematic router descriptor or extra-info from %s "
- "(\"%s\").",
- conn->base_.address, msg);
- write_http_status_line(conn, 400, msg);
- } else if (r == ROUTER_ADDED_SUCCESSFULLY) {
+ if (r == ROUTER_ADDED_SUCCESSFULLY) {
write_http_status_line(conn, 200, msg);
} else if (WRA_WAS_OUTDATED(r)) {
write_http_response_header_impl(conn, -1, NULL, NULL,