mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
Fix bug where OPs would try to generate descriptor and crash.
svn:r5738
This commit is contained in:
parent
e545f40e6a
commit
447e6ffffd
1 changed files with 6 additions and 1 deletions
|
@ -587,7 +587,12 @@ decide_if_publishable_server(time_t now)
|
|||
void
|
||||
consider_publishable_server(time_t now, int force)
|
||||
{
|
||||
int rebuilt = router_rebuild_descriptor(0);
|
||||
int rebuilt;
|
||||
|
||||
if (!server_mode(get_options()))
|
||||
return;
|
||||
|
||||
rebuilt = router_rebuild_descriptor(0);
|
||||
if (decide_if_publishable_server(now)) {
|
||||
set_server_advertised(1);
|
||||
if (rebuilt == 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue