2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 22:45:39 +00:00

If the message class is unset (for example, if the query has no question

section), return FORMERR, not REFUSED.
This commit is contained in:
Brian Wellington
2000-08-21 23:45:05 +00:00
parent 70e2821036
commit 83180b8337

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: client.c,v 1.107 2000/08/08 23:56:10 gson Exp $ */ /* $Id: client.c,v 1.108 2000/08/21 23:45:05 bwelling Exp $ */
#include <config.h> #include <config.h>
@@ -991,6 +991,14 @@ client_request(isc_task_t *task, isc_event_t *event) {
} }
} }
if (client->message->rdclass == 0) {
ns_client_log(client, NS_LOGCATEGORY_CLIENT,
NS_LOGMODULE_CLIENT, ISC_LOG_ERROR,
"message class could not be determined");
ns_client_error(client, DNS_R_FORMERR);
goto cleanup_serverlock;
}
/* /*
* Find a view that matches the client's source address. * Find a view that matches the client's source address.
* *