2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

dns_rdatalist_tordataset() and dns_rdatalist_fromrdataset() can not fail

Clean up dns_rdatalist_tordataset() and dns_rdatalist_fromrdataset()
functions by making them return void, because they cannot fail.

Clean up other functions that subsequently cannot fail.
This commit is contained in:
Aram Sargsyan
2022-07-29 12:40:45 +00:00
parent c537c3e838
commit c51b052827
30 changed files with 79 additions and 224 deletions

View File

@@ -1434,9 +1434,7 @@ list_tordataset(dns_rdatalist_t *rdatalist, dns_db_t *db, dns_dbnode_t *node,
* - private5 is the node.
*/
/* This should never fail. */
RUNTIME_CHECK(dns_rdatalist_tordataset(rdatalist, rdataset) ==
ISC_R_SUCCESS);
dns_rdatalist_tordataset(rdatalist, rdataset);
rdataset->methods = &rdataset_methods;
dns_db_attachnode(db, node, &rdataset->private5);