]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2479. [bug] xfrout:covers was not properly initalized. [RT 18801]
authorMark Andrews <marka@isc.org>
Wed, 29 Oct 2008 02:54:20 +0000 (02:54 +0000)
committerMark Andrews <marka@isc.org>
Wed, 29 Oct 2008 02:54:20 +0000 (02:54 +0000)
CHANGES
bin/named/xfrout.c

diff --git a/CHANGES b/CHANGES
index 03a6fd6ecaeffdf96ade36e9a12c124806976ddc..234d64eddf467311c47a8ed508cb3333a2085a85 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+2479.  [bug]           xfrout:covers was not properly initalized. [RT 18801]
+
 2478.  [bug]           'addresses' could be used uninitalized in
                        configure_forward(). [RT 18800]
        
index cfa6baef3fb4737e09069de978aedcdea28d366a..55b19f0c7b1b39856a657c01b1a1126a674528fd 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: xfrout.c,v 1.130 2008/09/24 02:46:21 marka Exp $ */
+/* $Id: xfrout.c,v 1.131 2008/10/29 02:54:20 marka Exp $ */
 
 #include <config.h>
 
@@ -314,6 +314,11 @@ log_rr(dns_name_t *name, dns_rdata_t *rdata, isc_uint32_t ttl) {
        rdl.type = rdata->type;
        rdl.rdclass = rdata->rdclass;
        rdl.ttl = ttl;
+       if (rdata->type == dns_rdatatype_sig ||
+           rdata->type == dns_rdatatype_rrsig)
+               rdl.covers = dns_rdata_covers(rdata);
+       else
+               rdl.covers = dns_rdatatype_none;
        ISC_LIST_INIT(rdl.rdata);
        ISC_LINK_INIT(&rdl, link);
        dns_rdataset_init(&rds);
@@ -1592,6 +1597,11 @@ sendstream(xfrout_ctx_t *xfr) {
                msgrdl->type = rdata->type;
                msgrdl->rdclass = rdata->rdclass;
                msgrdl->ttl = ttl;
+               if (rdata->type == dns_rdatatype_sig ||
+                   rdata->type == dns_rdatatype_rrsig)
+                       msgrdl->covers = dns_rdata_covers(rdata);
+               else
+                       msgrdl->covers = dns_rdatatype_none;
                ISC_LINK_INIT(msgrdl, link);
                ISC_LIST_INIT(msgrdl->rdata);
                ISC_LIST_APPEND(msgrdl->rdata, msgrdata, link);