aboutsummaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-04-01 22:17:37 +0000
committerRoger Dingledine <arma@torproject.org>2006-04-01 22:17:37 +0000
commitdfb3c5f47a3d814bb2c5667b9e82256a8887310f (patch)
treee669e7162c841901bad4e1ea7239105760bd4bec /src/or/control.c
parent6fb27741ba2c02ca94804ef763647c8966886434 (diff)
downloadtor-dfb3c5f47a3d814bb2c5667b9e82256a8887310f.tar
tor-dfb3c5f47a3d814bb2c5667b9e82256a8887310f.tar.gz
if you ask for getinfo dir/status/ but your dirport is off,
log a complaint. svn:r6286
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c
index c8fd631a7..f2beee04a 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -1506,8 +1506,10 @@ handle_getinfo_helper(const char *question, char **answer)
smartlist_t *status_list;
size_t len;
char *cp;
- if (!get_options()->DirPort)
+ if (!get_options()->DirPort) {
+ log_warn(LD_CONTROL, "getinfo dir/status/ requires an open dirport.");
return 0;
+ }
status_list = smartlist_create();
dirserv_get_networkstatus_v2(status_list,
question+strlen("dir/status/"));