diff options
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); } |