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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user