When enabled through a configuration option, set the configured EDE code
for the modified queries.
#include <ctype.h>
#include <inttypes.h>
#include <stdbool.h>
+#include <stdint.h>
#include <string.h>
#include <isc/hex.h>
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.