summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2021-10-20 17:36:07 +0000
committerAlexander Færøy <ahf@torproject.org>2021-10-20 17:36:07 +0000
commit04886b339331e0e5e9daebb2acd54dc5ffa8fb9b (patch)
tree957e2ab65bb44b3bc2be55a73efb56b8cd5b8f57
parentd4c697b2f7342eea8b750428c28a222be5bcd411 (diff)
parentfdc7549b61443a1ffd723c5a497b9c96c78d4a1a (diff)
downloadtor-04886b339331e0e5e9daebb2acd54dc5ffa8fb9b.tar.gz
tor-04886b339331e0e5e9daebb2acd54dc5ffa8fb9b.zip
Merge branch 'maint-0.4.5' into release-0.4.5
-rw-r--r--changes/bug403716
-rw-r--r--src/feature/relay/dns.c9
2 files changed, 6 insertions, 9 deletions
diff --git a/changes/bug40371 b/changes/bug40371
new file mode 100644
index 0000000000..8cc7117f9f
--- /dev/null
+++ b/changes/bug40371
@@ -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.
diff --git a/src/feature/relay/dns.c b/src/feature/relay/dns.c
index 3d9e50524f..71c6f56fb1 100644
--- a/src/feature/relay/dns.c
+++ b/src/feature/relay/dns.c
@@ -211,20 +211,11 @@ evdns_log_cb(int warn, const char *msg)
tor_log(severity, LD_EXIT, "eventdns: %s", msg);
}
-/** Helper: passed to eventdns.c as a callback so it can generate random
- * numbers for transaction IDs and 0x20-hack coding. */
-static void
-dns_randfn_(char *b, size_t n)
-{
- crypto_rand(b,n);
-}
-
/** Initialize the DNS subsystem; called by the OR process. */
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;