aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorHarini Kannan <hkannan@mit.edu>2016-02-07 16:07:35 -0500
committerHarini Kannan <hkannan@mit.edu>2016-02-07 16:07:35 -0500
commitc30be5a82d47328c311ed4bff925e37b6b40411c (patch)
tree4c2e1ef080874e403b9466ea89e077afae2f61c3 /src/or/dirserv.c
parent2d879bd39febfcce9ce39f13c897951fee7d8784 (diff)
downloadtor-c30be5a82d47328c311ed4bff925e37b6b40411c.tar.gz
tor-c30be5a82d47328c311ed4bff925e37b6b40411c.zip
Using router_get_my_routerinfo()
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 491557e9cd..bafea5e90b 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -3103,7 +3103,7 @@ dirserv_get_routerdescs(smartlist_t *descs_out, const char *key,
DSR_HEX|DSR_SORT_UNIQ);
SMARTLIST_FOREACH_BEGIN(digests, const char *, d) {
if (router_digest_is_me(d)) {
- /* make sure desc_routerinfo exists */
+ /* calling router_get_my_routerinfo() to make sure desc_routerinfo exists */
const routerinfo_t *ri = router_get_my_routerinfo();
if (ri)
smartlist_add(descs_out, (void*) &(ri->cache_info));