diff --git a/lib/ns/query.c b/lib/ns/query.c index c16cac61a2..d1c969ca16 100644 --- a/lib/ns/query.c +++ b/lib/ns/query.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include @@ -7267,6 +7268,12 @@ query_checkrpz(query_ctx_t *qctx, isc_result_t result) { UNREACHABLE(); } + if (qctx->rpz_st->m.rpz->ede != 0 && + qctx->rpz_st->m.rpz->ede != UINT16_MAX) { + ns_client_extendederror(qctx->client, + qctx->rpz_st->m.rpz->ede, NULL); + } + /* * Turn off DNSSEC because the results of a * response policy zone cannot verify.