mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Avoid potential infinite recursion when building a descriptor
svn:r5292
This commit is contained in:
parent
d6dcd973c3
commit
37708e9b1b
@ -402,10 +402,9 @@ int
|
||||
check_whether_dirport_reachable(void)
|
||||
{
|
||||
or_options_t *options = get_options();
|
||||
routerinfo_t *ri = router_get_my_routerinfo();
|
||||
return !options->DirPort ||
|
||||
options->AssumeReachable ||
|
||||
(ri && !ri->dir_port) ||
|
||||
we_are_hibernating() ||
|
||||
can_reach_dir_port;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user