]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
return notimp for qcount=0 unimplemeneted opcodes
authorMark Andrews <marka@isc.org>
Fri, 24 Jul 2015 03:35:29 +0000 (13:35 +1000)
committerMark Andrews <marka@isc.org>
Fri, 24 Jul 2015 03:37:12 +0000 (13:37 +1000)
(cherry picked from commit 7c10dc502a34f88f11c6b6469bb234c72e61fec8)

bin/named/client.c

index 6c6a80921242dafd70d2c7318889497991d05955..dade39d9f94902e8106be2d9b7146e1017b69465 100644 (file)
@@ -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;
                }