aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-04-01 22:00:49 +0000
committerRoger Dingledine <arma@torproject.org>2006-04-01 22:00:49 +0000
commit6fb27741ba2c02ca94804ef763647c8966886434 (patch)
treec5fba2160212d572295127ee5ef6e911ae641a86 /src/or/directory.c
parente754664d620bf5aad76aa713b53299560497ac91 (diff)
downloadtor-6fb27741ba2c02ca94804ef763647c8966886434.tar.gz
tor-6fb27741ba2c02ca94804ef763647c8966886434.zip
Fix dirserv_get_networkstatus_v2's api: its function comments
did not at all match its behavior, and I can't think of a case when it should return anything other than 0. This fix may allow getinfo dir/status/foo to work. svn:r6285
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index f54cdb86a5..88ff50099c 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -1430,10 +1430,7 @@ directory_handle_command_get(connection_t *conn, char *headers,
const char *key = url + strlen("/tor/status/");
if (deflated)
url[url_len-2] = '\0';
- if (dirserv_get_networkstatus_v2(dir_objs, key)) {
- smartlist_free(dir_objs);
- return 0;
- }
+ dirserv_get_networkstatus_v2(dir_objs, key);
if (!strcmpstart(key, "fp/"))
request_type = deflated?"/tor/status/fp.z":"/tor/status/fp";
else if (!strcmpstart(key, "authority"))