mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
r17917@catbus: nickm | 2008-02-05 16:38:15 -0500
Oops; fix compilation of control.c svn:r13391
This commit is contained in:
+2
-2
@@ -1715,7 +1715,7 @@ getinfo_helper_events(control_connection_t *control_conn,
|
||||
tor_snprintf(s, sizeof(s), "%d", get_n_authorities(V3_AUTHORITY));
|
||||
*answer = tor_strdup(s);
|
||||
log_warn(LD_GENERAL, "%s is deprecated; it no longer gives useful "
|
||||
"information");
|
||||
"information", question);
|
||||
}
|
||||
} else {
|
||||
return 0;
|
||||
@@ -2685,7 +2685,7 @@ connection_control_process_inbuf(control_connection_t *conn)
|
||||
return 0;
|
||||
else if (r == -1) {
|
||||
if (data_len + conn->incoming_cmd_cur_len > MAX_COMMAND_LINE_LENGTH) {
|
||||
connection_write_str_to_buf("500 Line too long.\r\n", TO_CONN(conn));
|
||||
connection_write_str_to_buf("500 Line too long.\r\n", conn);
|
||||
connection_stop_reading(TO_CONN(conn));
|
||||
connection_mark_for_close(TO_CONN(conn));
|
||||
conn->_base.hold_open_until_flushed = 1;
|
||||
|
||||
Reference in New Issue
Block a user