]> git.ipfire.org Git - thirdparty/bind9.git/commit
Silence a scan-build warning in dns_rbt_addname()
authorMichał Kępień <michal@isc.org>
Fri, 22 Dec 2023 18:27:37 +0000 (19:27 +0100)
committerMichał Kępień <michal@isc.org>
Fri, 22 Dec 2023 18:27:37 +0000 (19:27 +0100)
commit9cf1f39b54ed8be9fffecff29cb65b987734aade
tree1c1302d6a04375407a1cdb14c445866402b845e6
parent1f78f3a5866b1d29ff3d9e01c7a6c70734a7bda6
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.
lib/dns/rbt.c