]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2869. [bug] Fix arguments to dns_keytable_findnextkeynode() call.
authorMark Andrews <marka@isc.org>
Fri, 26 Mar 2010 17:12:48 +0000 (17:12 +0000)
committerMark Andrews <marka@isc.org>
Fri, 26 Mar 2010 17:12:48 +0000 (17:12 +0000)
                        [RT #20877]

CHANGES
lib/dns/validator.c

diff --git a/CHANGES b/CHANGES
index 0a50cfc42ed88e84826e6151854d11a22625958e..7f2e159c78b1970ee037816619afdacbff63c581 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2869.  [bug]           Fix arguments to dns_keytable_findnextkeynode() call.
+                       [RT #20877]
+
 2868.  [cleanup]       Run "make clean" at the end of configure to ensure
                        any changes made by configure are integrated.
                        Use --with-make-clean=no to disable.  [RT #20994]
index fb3c5b5df872f81ebf58c6e2d534a68308119201..8227c7701072fd8d8cd358599795869dcd7ba591 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: validator.c,v 1.187 2010/03/04 23:50:34 tbox Exp $ */
+/* $Id: validator.c,v 1.188 2010/03/26 17:12:48 marka Exp $ */
 
 #include <config.h>
 
@@ -2211,7 +2211,7 @@ validatezonekey(dns_validator_t *val) {
                     result == ISC_R_SUCCESS;
                     result = dns_rdataset_next(val->event->sigrdataset))
                {
-                       dns_keynode_t *keynode = NULL, *nextnode = NULL;
+                       dns_keynode_t *keynode = NULL;
 
                        dns_rdata_reset(&sigrdata);
                        dns_rdataset_current(val->event->sigrdataset,
@@ -2231,6 +2231,7 @@ validatezonekey(dns_validator_t *val) {
                            result == ISC_R_SUCCESS)
                                atsep = ISC_TRUE;
                        while (result == ISC_R_SUCCESS) {
+                               dns_keynode_t *nextnode = NULL;
                                dstkey = dns_keynode_key(keynode);
                                if (dstkey == NULL) {
                                        dns_keytable_detachkeynode(