mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 02:09:24 +01:00
identical error strings in different contexts bad
svn:r16937
This commit is contained in:
parent
b0c48d8e45
commit
0fc0d5266c
@ -3024,11 +3024,11 @@ directory_handle_command_post(dir_connection_t *conn, const char *headers,
|
||||
case -1:
|
||||
log_warn(LD_REND, "Rejected v2 rend descriptor (length %d) from %s.",
|
||||
(int)body_len, conn->_base.address);
|
||||
write_http_status_line(conn, 400, "Invalid service descriptor "
|
||||
"rejected");
|
||||
write_http_status_line(conn, 400,
|
||||
"Invalid v2 service descriptor rejected");
|
||||
break;
|
||||
default:
|
||||
write_http_status_line(conn, 200, "Service descriptor stored");
|
||||
write_http_status_line(conn, 200, "Service descriptor (v2) stored");
|
||||
log_info(LD_REND, "Handled v2 rendezvous descriptor post: accepted");
|
||||
}
|
||||
goto done;
|
||||
@ -3082,9 +3082,10 @@ directory_handle_command_post(dir_connection_t *conn, const char *headers,
|
||||
log_fn(LOG_PROTOCOL_WARN, LD_DIRSERV,
|
||||
"Rejected rend descriptor (length %d) from %s.",
|
||||
(int)body_len, conn->_base.address);
|
||||
write_http_status_line(conn, 400, "Invalid service descriptor rejected");
|
||||
write_http_status_line(conn, 400,
|
||||
"Invalid v1 service descriptor rejected");
|
||||
} else {
|
||||
write_http_status_line(conn, 200, "Service descriptor stored");
|
||||
write_http_status_line(conn, 200, "Service descriptor (v1) stored");
|
||||
}
|
||||
goto done;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user