]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix a bug in catz_process_apl()
authorAram Sargsyan <aram@isc.org>
Mon, 4 May 2026 22:34:01 +0000 (22:34 +0000)
committerAram Sargsyan <aram@isc.org>
Wed, 6 May 2026 20:34:27 +0000 (20:34 +0000)
commit084a0f47a754511ab38106aea4e7a264a3dfa119
treec40fba7c14c7f5d46b7bd3245446bcb3621fe9d7
parent4cc04dde4b404c6c4fad76acd21c077bf0125389
Fix a bug in catz_process_apl()

The allow-transfer/allow-query catalog zone custom properties support
only APL RRtypes. All other types are correctly rejected by the
catz_process_apl() function. However, when an APL RRtype is processed
by that function, and another (non-APL) RRtype is then attempted to be
processed, there is an assertion failure happening in the prologue
of the function because `*aclbp != NULL` (i.e. an APL has been already
processed). Move the code to do type checking before the affected
REQUIRE assertion.

(cherry picked from commit 67e0090371b4bd4c8933b8644f68a3dbc592a214)
lib/dns/catz.c