mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
Use router_get_my_routerinfo_with_err to implement the old version
Having one function implemented in terms of the other should keep them from diverging. follow-up on #25852
This commit is contained in:
parent
d27fd7ff6b
commit
a9ef335c1b
1 changed files with 1 additions and 5 deletions
|
@ -2076,11 +2076,7 @@ router_is_me(const routerinfo_t *router)
|
|||
MOCK_IMPL(const routerinfo_t *,
|
||||
router_get_my_routerinfo,(void))
|
||||
{
|
||||
if (!server_mode(get_options()))
|
||||
return NULL;
|
||||
if (router_rebuild_descriptor(0))
|
||||
return NULL;
|
||||
return desc_routerinfo;
|
||||
return router_get_my_routerinfo_with_err(NULL);
|
||||
}
|
||||
|
||||
/** Return routerinfo of this OR. Rebuild it from
|
||||
|
|
Loading…
Add table
Reference in a new issue