Remove unnecessary REQUIRE in dns_resolver_attach

There is no harm in aquiring an additional reference to the resolver
after it has started shutting down.  All the REQUIRE was doing was
introducing a point of failure when shutting down the server.
This commit is contained in:
Mark Andrews
2023-06-20 11:31:55 +10:00
parent adf199b309
commit 0d3693f08f

View File

@@ -10616,7 +10616,6 @@ dns_resolver_attach(dns_resolver_t *source, dns_resolver_t **targetp) {
RRTRACE(source, "attach");
REQUIRE(!atomic_load_acquire(&source->exiting));
isc_refcount_increment(&source->references);
*targetp = source;