r17917@catbus: nickm | 2008-02-05 16:38:15 -0500

Oops; fix compilation of control.c


svn:r13391
This commit is contained in:
Nick Mathewson
2008-02-05 21:39:51 +00:00
parent fac2cd3b03
commit 7dc70c2405
+2 -2
View File
@@ -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;