aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-02-24 22:11:18 +0000
committerNick Mathewson <nickm@torproject.org>2008-02-24 22:11:18 +0000
commit3452486ac65af88cf524cb93041a2a173335da27 (patch)
treeb3b7ec3eceac0e8060fe0da76c2e4bada31be148 /src/or/router.c
parentee8dce3084261447420f0bb7abeb6807583325ee (diff)
downloadtor-3452486ac65af88cf524cb93041a2a173335da27.tar.gz
tor-3452486ac65af88cf524cb93041a2a173335da27.zip
r14422@tombo: nickm | 2008-02-24 17:09:56 -0500
Whitespace fixes svn:r13700
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 9b22d86ed1..c6f1195366 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1099,11 +1099,12 @@ router_digest_is_me(const char *digest)
int
router_extrainfo_digest_is_me(const char *digest)
{
- if (!router_get_my_extrainfo())
+ extrainfo_t *ei = router_get_my_extrainfo();
+ if (!ei)
return 0;
return !memcmp(digest,
- &(router_get_my_extrainfo()->cache_info).signed_descriptor_digest,
+ ei->cache_info.signed_descriptor_digest,
DIGEST_LEN);
}