Let's go through the check_resolver() / new_resolver() code path
which will also hook up the resovler to the shared cache.
This means also one less special case for upcomming DNS64 support.
-/* $OpenBSD: resolver.c,v 1.131 2021/01/19 16:52:40 florian Exp $ */
+/* $OpenBSD: resolver.c,v 1.132 2021/01/23 16:27:24 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
if (result->rcode == LDNS_RCODE_SERVFAIL)
goto servfail;
- if (sec == SECURE)
- res->state = VALIDATING;
+ if (sec == SECURE && res->state != VALIDATING && res->stop != -1)
+ check_resolver(res);
if (res->state == VALIDATING && sec == BOGUS) {
answer_header->bogus = !force_acceptbogus;