Skip to content

Silence a scan-build warning in dns_rbt_addname()

Clang Static Analyzer is unable to grasp that when dns_rbt_addnode() returns ISC_R_EXISTS, it always sets the pointer passed to it via its 'nodep' parameter to a non-NULL value. Add an extra safety check in the conditional expression used in dns_rbt_addname() to silence that warning.

See https://gitlab.isc.org/isc-private/bind9/-/merge_requests/605#note_423321

Merge request reports