2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 05:28:00 +00:00

If a query is for type ANY, match the first view that otherwise matches.

This commit is contained in:
Brian Wellington 2000-01-24 21:29:12 +00:00
parent 11de9fbd8d
commit 651a38a706

View File

@ -693,7 +693,9 @@ client_request(isc_task_t *task, isc_event_t *event) {
/* /*
* XXXRTH View matching will become more powerful later. * XXXRTH View matching will become more powerful later.
*/ */
if (client->message->rdclass == view->rdclass) { if (client->message->rdclass == view->rdclass ||
client->message->rdclass == dns_rdataclass_any)
{
dns_view_attach(view, &client->view); dns_view_attach(view, &client->view);
break; break;
} }