[or-cvs] if you ask for getinfo dir/status/ but your dirport is off,

arma at seul.org arma at seul.org
Sat Apr 1 22:17:40 UTC 2006


Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv17800

Modified Files:
	control.c 
Log Message:
if you ask for getinfo dir/status/ but your dirport is off,
log a complaint.


Index: control.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/control.c,v
retrieving revision 1.186
retrieving revision 1.187
diff -u -p -d -r1.186 -r1.187
--- control.c	1 Apr 2006 22:00:48 -0000	1.186
+++ control.c	1 Apr 2006 22:17:37 -0000	1.187
@@ -1506,8 +1506,10 @@ handle_getinfo_helper(const char *questi
     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/"));



More information about the tor-commits mailing list