]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1737. [bug] named failed if more that 16 masters were specified.
authorMark Andrews <marka@isc.org>
Tue, 5 Oct 2004 02:47:50 +0000 (02:47 +0000)
committerMark Andrews <marka@isc.org>
Tue, 5 Oct 2004 02:47:50 +0000 (02:47 +0000)
                        [RT #12627]

CHANGES
bin/named/config.c

diff --git a/CHANGES b/CHANGES
index c58aa87d5e202d35662dff7de3d047193532a5c1..7f1aeef5602d1d8d8627908fba4be3c142e45368 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+1737.  [bug]           named failed if more that 16 masters were specified.
+                       [RT #12627]
+
 1736.  [bug]           dst_key_fromnamedfile() could fail to read a
                        public key. [RT #12687]
                        
index a5e8e2ace57c97bb320f98a25c191a5c7dbf12d9..10739e777ba80e8b19a1f04d9a4ee29f16bdc8ab 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: config.c,v 1.50 2004/08/28 05:42:12 marka Exp $ */
+/* $Id: config.c,v 1.51 2004/10/05 02:47:50 marka Exp $ */
 
 #include <config.h>
 
@@ -555,8 +555,8 @@ ns_config_getipandkeylist(cfg_obj_t *config, cfg_obj_t *list, isc_mem_t *mctx,
                        if (new == NULL)
                                goto cleanup;
                        if (keycount != 0) {
-                               memcpy(new, keys, newsize);
-                               isc_mem_put(mctx, keys, newsize);
+                               memcpy(new, keys, oldsize);
+                               isc_mem_put(mctx, keys, oldsize);
                        }
                        keys = new;
                        keycount = newlen;