]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Stop calling evdns_set_random_bytes_fn()
authorNick Mathewson <nickm@torproject.org>
Fri, 16 Apr 2021 21:26:59 +0000 (17:26 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 16 Apr 2021 21:26:59 +0000 (17:26 -0400)
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.

changes/bug40371 [new file with mode: 0644]
src/feature/relay/dns.c

diff --git a/changes/bug40371 b/changes/bug40371
new file mode 100644 (file)
index 0000000..8cc7117
--- /dev/null
@@ -0,0 +1,6 @@
+  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 0.2.1.7-alpha.
index e20a39482fdeadf61456ffef380be510c34b4c42..075d7d7063023eb4433ba1caa1b98c33ff546040 100644 (file)
@@ -224,7 +224,6 @@ int
 dns_init(void)
 {
   init_cache_map();
-  evdns_set_random_bytes_fn(dns_randfn_);
   if (server_mode(get_options())) {
     int r = configure_nameservers(1);
     return r;