Commit f20f5a4e authored by Nick Mathewson's avatar Nick Mathewson 🦀
Browse files

Stop calling evdns_set_random_bytes_fn()

This function has been a no-op since Libevent 2.0.4-alpha, when
libevent got an arc4random() implementation.  Libevent has finally
removed it, which will break our compilation unless we stop calling
it.  (This is currently breaking compilation in OSS-fuzz.)

Closes #40371.
parent 131e2d99
o Minor bugfixes (compatibility):
- Fix compatibility with the most recent Libevent versions, which
no longer have an evdns_set_random_bytes() function. Because
this function has been a no-op since Libevent 2.0.4-alpha,
it is safe for us to just stop calling it. Fixes bug 40371;
bugfix on
...@@ -224,7 +224,6 @@ int ...@@ -224,7 +224,6 @@ int
dns_init(void) dns_init(void)
{ {
init_cache_map(); init_cache_map();
if (server_mode(get_options())) { if (server_mode(get_options())) {
int r = configure_nameservers(1); int r = configure_nameservers(1);
return r; return r;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment