]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1182. [bug] The server could throw an assertion failure when
authorMark Andrews <marka@isc.org>
Mon, 21 Jan 2002 22:27:03 +0000 (22:27 +0000)
committerMark Andrews <marka@isc.org>
Mon, 21 Jan 2002 22:27:03 +0000 (22:27 +0000)
                        constructing a negative response packet.

CHANGES
lib/dns/ncache.c

diff --git a/CHANGES b/CHANGES
index 286bf747f990c7150a86ee91fb897ba1469b854c..229f34969e0aac2ee6202a0c9cd5bd52268983a5 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+1182.  [bug]           The server could throw an assertion failure when
+                       constructing a negative response packet.
+
 1162.  [bug]           The allow-notify option was not accepted in slave
                        zone statements.
 
index 432862a19b899dcd1fc056eed49a62d39a41273b..f950f97c7821cab88b06e0e1d7d5c284db13150a 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: ncache.c,v 1.24 2001/01/09 21:51:08 bwelling Exp $ */
+/* $Id: ncache.c,v 1.24.2.1 2002/01/21 22:27:03 marka Exp $ */
 
 #include <config.h>
 
@@ -257,7 +257,7 @@ dns_ncache_towire(dns_rdataset_t *rdataset, dns_compress_t *cctx,
 {
        dns_rdata_t rdata = DNS_RDATA_INIT;
        isc_result_t result;
-       isc_region_t remaining, tremaining;
+       isc_region_t remaining, tavailable;
        isc_buffer_t source, savedbuffer, rdlen;
        dns_name_t name;
        dns_rdatatype_t type;
@@ -323,8 +323,8 @@ dns_ncache_towire(dns_rdataset_t *rdataset, dns_compress_t *cctx,
                         * See if we have space for type, class, ttl, and
                         * rdata length.  Write the type, class, and ttl.
                         */
-                       isc_buffer_remainingregion(target, &tremaining);
-                       if (tremaining.length < 10) {
+                       isc_buffer_availableregion(target, &tavailable);
+                       if (tavailable.length < 10) {
                                result = ISC_R_NOSPACE;
                                goto rollback;
                        }