]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2877. [bug] The validator failed to skip obviously mismatching
authorMark Andrews <marka@isc.org>
Wed, 21 Apr 2010 05:45:47 +0000 (05:45 +0000)
committerMark Andrews <marka@isc.org>
Wed, 21 Apr 2010 05:45:47 +0000 (05:45 +0000)
                        RRSIGs. [RT #21138]

CHANGES
lib/dns/validator.c

diff --git a/CHANGES b/CHANGES
index a9f5ef9e7f8aaf8eb577c31b5c720a929a977096..925f52f6bf870da27d6ece8df35d2de65824372f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2877.  [bug]           The validator failed to skip obviously mismatching
+                       RRSIGs. [RT #21138]
+
 2876.  [bug]           Named could return SERVFAIL for negative responses
                        from unsigned zones. [RT #21131]
 
index 094bb8ae1223cdaf1f3e4318323d46e260d97a6a..f183d0b50fc8139f286fcc0956168d1b5b8cb9a5 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: validator.c,v 1.189 2010/04/21 04:16:49 marka Exp $ */
+/* $Id: validator.c,v 1.190 2010/04/21 05:45:47 marka Exp $ */
 
 #include <config.h>
 
@@ -2119,7 +2119,7 @@ dlv_validatezonekey(dns_validator_t *val) {
                                             &sigrdata);
                        result = dns_rdata_tostruct(&sigrdata, &sig, NULL);
                        RUNTIME_CHECK(result == ISC_R_SUCCESS);
-                       if (dlv.key_tag != sig.keyid &&
+                       if (dlv.key_tag != sig.keyid ||
                            dlv.algorithm != sig.algorithm)
                                continue;
                        dstkey = NULL;