mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 07:59:59 -04:00
Merge branch 'michal/silence-a-scan-build-warning-in-dns_rbt_addname' into 'main'
Silence a scan-build warning in dns_rbt_addname() See merge request isc-projects/bind9!8614
This commit is contained in:
commit
f0e17a92a3
1 changed files with 1 additions and 1 deletions
|
|
@ -733,7 +733,7 @@ dns_rbt_addname(dns_rbt_t *rbt, const dns_name_t *name, void *data) {
|
|||
* there is data associated with a node.
|
||||
*/
|
||||
if (result == ISC_R_SUCCESS ||
|
||||
(result == ISC_R_EXISTS && node->data == NULL))
|
||||
(result == ISC_R_EXISTS && node != NULL && node->data == NULL))
|
||||
{
|
||||
node->data = data;
|
||||
result = ISC_R_SUCCESS;
|
||||
|
|
|
|||
Loading…
Reference in a new issue