mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
2479. [bug] xfrout:covers was not properly initalized. [RT 18801]
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,3 +1,5 @@
|
|||||||
|
2479. [bug] xfrout:covers was not properly initalized. [RT 18801]
|
||||||
|
|
||||||
2478. [bug] 'addresses' could be used uninitalized in
|
2478. [bug] 'addresses' could be used uninitalized in
|
||||||
configure_forward(). [RT 18800]
|
configure_forward(). [RT 18800]
|
||||||
|
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* 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>
|
#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.type = rdata->type;
|
||||||
rdl.rdclass = rdata->rdclass;
|
rdl.rdclass = rdata->rdclass;
|
||||||
rdl.ttl = ttl;
|
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_LIST_INIT(rdl.rdata);
|
||||||
ISC_LINK_INIT(&rdl, link);
|
ISC_LINK_INIT(&rdl, link);
|
||||||
dns_rdataset_init(&rds);
|
dns_rdataset_init(&rds);
|
||||||
@@ -1592,6 +1597,11 @@ sendstream(xfrout_ctx_t *xfr) {
|
|||||||
msgrdl->type = rdata->type;
|
msgrdl->type = rdata->type;
|
||||||
msgrdl->rdclass = rdata->rdclass;
|
msgrdl->rdclass = rdata->rdclass;
|
||||||
msgrdl->ttl = ttl;
|
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_LINK_INIT(msgrdl, link);
|
||||||
ISC_LIST_INIT(msgrdl->rdata);
|
ISC_LIST_INIT(msgrdl->rdata);
|
||||||
ISC_LIST_APPEND(msgrdl->rdata, msgrdata, link);
|
ISC_LIST_APPEND(msgrdl->rdata, msgrdata, link);
|
||||||
|
Reference in New Issue
Block a user