Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Georg Koppen
Tor
Commits
649539e8
Commit
649539e8
authored
Mar 16, 2022
by
David Goulet
Browse files
Merge branch 'tor-gitlab/mr/550'
parents
1a5b6128
1f783bab
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/feature/relay/dns.c
View file @
649539e8
...
...
@@ -1416,12 +1416,15 @@ get_consensus_param_exit_dns_attempts(void)
return
str
;
}
/** Configure the libevent options. This can be called after
initialization.
*
This should never be called without the evdns base pointer initialized
. */
/** Configure the libevent options. This can
safely
be called after
*
initialization or even if the evdns base is not set
. */
static
void
configure_libevent_options
(
void
)
{
if
(
BUG
(
!
the_evdns_base
))
{
/* This is possible because we can get called when a new consensus is set
* while the DNS subsystem is not initialized just yet. It should be
* harmless. */
if
(
!
the_evdns_base
)
{
return
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment