mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-27 03:51:16 -05:00
Silence unchecked return of dns_db_find()
190 dns_rdataset_init(&rdataset); 3. Condition r == 0, taking true branch. 4. Condition result, taking false branch. CID 1452691 (#1 of 1): Unchecked return value (CHECKED_RETURN) 5. check_return: Calling dns_db_find without checking return value (as is done elsewhere 39 out of 45 times). 191 check_assertion(dns_db_find(db1, dns_rootname, v2, 192 dns_rdatatype_soa, 0, 0, NULL, 193 name, &rdataset, NULL));
This commit is contained in:
parent
98d5109e82
commit
e8bf82efc6
1 changed files with 3 additions and 3 deletions
|
|
@ -186,9 +186,9 @@ find(void **state) {
|
|||
}
|
||||
|
||||
dns_rdataset_init(&rdataset);
|
||||
check_assertion(dns_db_find(db1, dns_rootname, v2,
|
||||
dns_rdatatype_soa, 0, 0, NULL,
|
||||
name, &rdataset, NULL));
|
||||
check_assertion((void)dns_db_find(db1, dns_rootname, v2,
|
||||
dns_rdatatype_soa, 0, 0, NULL,
|
||||
name, &rdataset, NULL));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue