mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
Pass a ttl to dns_buildnxt. Uses 3600 now, but better code could be copied
from signer.c if nxtify is ever going to be used.
This commit is contained in:
parent
201b17e55f
commit
683e95c97a
@ -87,7 +87,7 @@ active_node(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node) {
|
|||||||
* Make sure there is no NXT record for this node.
|
* Make sure there is no NXT record for this node.
|
||||||
*/
|
*/
|
||||||
result = dns_db_deleterdataset(db, node, version,
|
result = dns_db_deleterdataset(db, node, version,
|
||||||
dns_rdatatype_nxt);
|
dns_rdatatype_nxt, 0);
|
||||||
if (result == DNS_R_UNCHANGED)
|
if (result == DNS_R_UNCHANGED)
|
||||||
result = ISC_R_SUCCESS;
|
result = ISC_R_SUCCESS;
|
||||||
check_result(result, "dns_db_deleterdataset");
|
check_result(result, "dns_db_deleterdataset");
|
||||||
@ -177,7 +177,7 @@ nxtify(char *filename) {
|
|||||||
target = NULL; /* Make compiler happy. */
|
target = NULL; /* Make compiler happy. */
|
||||||
fatal("db iteration failed");
|
fatal("db iteration failed");
|
||||||
}
|
}
|
||||||
dns_buildnxt(db, wversion, node, target);
|
dns_buildnxt(db, wversion, node, target, 3600); /* XXX BEW */
|
||||||
dns_db_detachnode(db, &node);
|
dns_db_detachnode(db, &node);
|
||||||
node = nextnode;
|
node = nextnode;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user