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/router.c | |
parent | ee8dce3084261447420f0bb7abeb6807583325ee (diff) | |
download | tor-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.c | 5 |
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); } |