]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2864. [bug] Direct SIG/RRSIG queries were not handled correctly.
authorMark Andrews <marka@isc.org>
Fri, 12 Mar 2010 01:48:35 +0000 (01:48 +0000)
committerMark Andrews <marka@isc.org>
Fri, 12 Mar 2010 01:48:35 +0000 (01:48 +0000)
                        [RT #21050]

CHANGES
bin/named/query.c

diff --git a/CHANGES b/CHANGES
index 02c30926576c1fb2f1c24ffe86177cded87d66b9..0f8b4691d714fc7473596b8f59bca03104da55f9 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2864.  [bug]           Direct SIG/RRSIG queries were not handled correctly.
+                       [RT #21050]
+
 2863.  [port]          linux: disable IPv6 PMTUD and use network minimum MTU.
                        [RT #21056]
 
index 23fd981e44a2250d56662e20b2c12dea51008d3a..a3126a71fdf682fab07fa1fc6c657ec447f1b0fb 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: query.c,v 1.336 2009/12/30 08:02:22 jinmei Exp $ */
+/* $Id: query.c,v 1.337 2010/03/12 01:48:35 marka Exp $ */
 
 /*! \file */
 
@@ -4754,11 +4754,12 @@ query_find(ns_client_t *client, dns_fetchevent_t *event, dns_rdatatype_t qtype)
                if (fname != NULL)
                        dns_message_puttempname(client->message, &fname);
 
-               if (n == 0 && is_zone) {
+               if (n == 0) {
                        /*
                         * We didn't match any rdatasets.
                         */
-                       if (qtype == dns_rdatatype_rrsig &&
+                       if ((qtype == dns_rdatatype_rrsig ||
+                            qtype == dns_rdatatype_sig) &&
                            result == ISC_R_NOMORE) {
                                /*
                                 * XXXRTH  If this is a secure zone and we