Commit 1d7cbe71 authored by Mark Andrews's avatar Mark Andrews
Browse files

1583. [bug] Records add via UPDATE failed to get the correct trust

                        level. [RT #10452]
parent d249a250
......@@ -4,7 +4,8 @@
1584. [placeholder] rt10461
1583. [placeholder] rt10452
1583. [bug] Records add via UPDATE failed to get the correct trust
level. [RT #10452]
1582. [bug] rrset-order failed to work on RRsets with more
than 32 elements. [RT #10381]
......
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: diff.c,v 1.7 2003/09/30 05:56:10 marka Exp $ */
/* $Id: diff.c,v 1.8 2004/03/04 02:46:27 marka Exp $ */
#include <config.h>
......@@ -270,6 +270,7 @@ diff_apply(dns_diff_t *diff, dns_db_t *db, dns_dbversion_t *ver,
*/
dns_rdataset_init(&rds);
CHECK(dns_rdatalist_tordataset(&rdl, &rds));
rds.trust = dns_trust_ultimate;
/*
* Merge the rdataset into the database.
......
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rbtdb.c,v 1.193 2004/02/03 00:59:04 marka Exp $ */
/* $Id: rbtdb.c,v 1.194 2004/03/04 02:46:28 marka Exp $ */
/*
* Principal Author: Bob Halley
......@@ -4083,13 +4083,12 @@ addrdataset(dns_db_t *db, dns_dbnode_t *node, dns_dbversion_t *version,
newheader->attributes = 0;
newheader->noqname = NULL;
newheader->count = 0;
newheader->trust = rdataset->trust;
if (rbtversion != NULL) {
newheader->serial = rbtversion->serial;
newheader->trust = 0;
now = 0;
} else {
newheader->serial = 1;
newheader->trust = rdataset->trust;
if ((rdataset->attributes & DNS_RDATASETATTR_NXDOMAIN) != 0)
newheader->attributes |= RDATASET_ATTR_NXDOMAIN;
if ((rdataset->attributes & DNS_RDATASETATTR_NOQNAME) != 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment