diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-24 22:11:18 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-24 22:11:18 +0000 |
commit | 3452486ac65af88cf524cb93041a2a173335da27 (patch) | |
tree | b3b7ec3eceac0e8060fe0da76c2e4bada31be148 /src/or/dirserv.c | |
parent | ee8dce3084261447420f0bb7abeb6807583325ee (diff) | |
download | tor-3452486ac65af88cf524cb93041a2a173335da27.tar tor-3452486ac65af88cf524cb93041a2a173335da27.tar.gz |
r14422@tombo: nickm | 2008-02-24 17:09:56 -0500
Whitespace fixes
svn:r13700
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 29aff2872..81181f774 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -2673,8 +2673,10 @@ dirserv_get_routerdescs(smartlist_t *descs_out, const char *key, SMARTLIST_FOREACH(digests, const char *, d, { if (router_digest_is_me(d)) { - if (router_get_my_routerinfo()) /* make sure desc_routerinfo exists */ - smartlist_add(descs_out, &(router_get_my_routerinfo()->cache_info)); + /* make sure desc_routerinfo exists */ + routerinfo_t *ri = router_get_my_routerinfo(); + if (ri) + smartlist_add(descs_out, &(ri->cache_info)); } else { routerinfo_t *ri = router_get_by_digest(d); /* Don't actually serve a descriptor that everyone will think is |