Commit 2429ed58 authored by Bob Halley's avatar Bob Halley
Browse files

INSIST that views with resolvers also have caches when they are frozen

parent e8e4cccb
...@@ -372,8 +372,10 @@ dns_view_freeze(dns_view_t *view) { ...@@ -372,8 +372,10 @@ dns_view_freeze(dns_view_t *view) {
REQUIRE(DNS_VIEW_VALID(view)); REQUIRE(DNS_VIEW_VALID(view));
REQUIRE(!view->frozen); REQUIRE(!view->frozen);
if (view->resolver != NULL) if (view->resolver != NULL) {
INSIST(view->cachedb != NULL);
dns_resolver_freeze(view->resolver); dns_resolver_freeze(view->resolver);
}
view->frozen = ISC_TRUE; view->frozen = ISC_TRUE;
} }
......
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