aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/or/routerlist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 6b889dce9..76365b5df 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -4505,7 +4505,8 @@ hid_serv_responsible_for_desc_id(const char *query)
return 0; /* This is redundant, but let's be paranoid. */
my_id = me->cache_info.identity_digest;
responsible = smartlist_create();
- if (hid_serv_get_responsible_directories(responsible, query)<0) {
+ (int) hid_serv_get_responsible_directories(responsible, query);
+ if (!smartlist_len(responsible)) {
smartlist_free(responsible);
return 0;
}