]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
398. [bug] dig sometimes caught an assertion failure when
authorAndreas Gustafsson <source@isc.org>
Fri, 18 Aug 2000 20:00:11 +0000 (20:00 +0000)
committerAndreas Gustafsson <source@isc.org>
Fri, 18 Aug 2000 20:00:11 +0000 (20:00 +0000)
                        using TSIG, depending on the key length.

CHANGES
bin/dig/dighost.c

diff --git a/CHANGES b/CHANGES
index 714e700098b414170c4426c7f333ac99b5b46c67..a5a48cab01347392257a8a60381c7f7f8cf5acfc 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,7 @@
 
+ 398.  [bug]           "dig" sometimes caught an assertion failure when
+                       using TSIG, depending on the key length.
+
        --- 9.0.0rc3 released ---
 
  396.  [doc]           There is now a man page for "nsupdate" 
index 947ecc7b8f844b720743a82ab2838561face691d..59a82effc2ee01fde0fb19d38003586ece4a7ec7 100644 (file)
@@ -15,7 +15,7 @@
  * SOFTWARE.
  */
 
-/* $Id: dighost.c,v 1.58.2.9 2000/08/07 23:50:13 gson Exp $ */
+/* $Id: dighost.c,v 1.58.2.10 2000/08/18 20:00:11 gson Exp $ */
 
 /*
  * Notice to programmers:  Do not use this code as an example of how to
@@ -484,7 +484,7 @@ setup_system(void) {
                isc_buffer_putstr(namebuf, keynametext);
                secretsize = strlen(keysecret) * 3 / 4;
                debug("secretstore");
-               secretstore = isc_mem_get(mctx, secretsize);
+               secretstore = isc_mem_allocate(mctx, secretsize);
                if (secretstore == NULL)
                        fatal("Memory allocation failure in %s:%d",
                              __FILE__, __LINE__);
@@ -528,12 +528,12 @@ setup_system(void) {
                        printf(";; Couldn't create key %s: %s\n",
                               keynametext, dns_result_totext(result));
                }
-               isc_mem_put(mctx, secretstore, secretsize);
+               isc_mem_free(mctx, secretstore);
                dns_name_invalidate(&keyname);
                isc_buffer_free(&namebuf);
                return;
        SYSSETUP_FAIL:
-               isc_mem_put(mctx, secretstore, secretsize);
+               isc_mem_free(mctx, secretstore);
                dns_name_invalidate(&keyname);
                isc_buffer_free(&namebuf);
                dns_tsigkeyring_destroy(&keyring);