aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-11-17 21:45:38 +0000
committerRoger Dingledine <arma@torproject.org>2005-11-17 21:45:38 +0000
commit7dbf2511c39e47db609c77e255dc1a186b8e1ff1 (patch)
tree4e654be3c57f373433c6f1578eb88d383da16f8b /src
parent24ea1b3673f7f9d01f50c2b886a0b8ddc27d0712 (diff)
downloadtor-7dbf2511c39e47db609c77e255dc1a186b8e1ff1.tar
tor-7dbf2511c39e47db609c77e255dc1a186b8e1ff1.tar.gz
when you type 'getinfo' with no arguments, it doesn't give you
any answer at all. this is clearly a bug. the more interesting bug is whether things like setconf, getconf, and so on should return 250 OK if you give them no arguments. should we have a new "you didn't ask me anything" response code, or just leave it as is? svn:r5412
Diffstat (limited to 'src')
-rw-r--r--src/or/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c
index cb97f5b26..8efb3cc69 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -1452,7 +1452,7 @@ handle_control_getinfo(connection_t *conn, uint32_t len, const char *body)
tor_assert(msg_len > 0); /* it will at least be terminated */
send_control0_message(conn, CONTROL0_CMD_INFOVALUE,
msg_len, msg);
- } else if (smartlist_len(answers)) {
+ } else {
int i;
for (i = 0; i < smartlist_len(answers); i += 2) {
char *k = smartlist_get(answers, i);