From 58eb2006a43c493f577cd1d3553f5ac89a883cb2 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 24 Jul 2015 13:35:29 +1000 Subject: [PATCH] return notimp for qcount=0 unimplemeneted opcodes (cherry picked from commit 7c10dc502a34f88f11c6b6469bb234c72e61fec8) --- bin/named/client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/named/client.c b/bin/named/client.c index 6c6a809212..dade39d9f9 100644 --- a/bin/named/client.c +++ b/bin/named/client.c @@ -2296,6 +2296,8 @@ client_request(isc_task_t *task, isc_event_t *event) { ns_client_error(client, result); return; } + if (notimp) + client->message->rcode = dns_rcode_notimp; ns_client_send(client); return; }