]> git.ipfire.org Git - thirdparty/bind9.git/commit
Assert rpz_ready() yields an rdataset in rpz_find_p()
authorMichal Nowak <mnowak@isc.org>
Mon, 29 Jun 2026 11:41:37 +0000 (11:41 +0000)
committerMichal Nowak <mnowak@isc.org>
Thu, 23 Jul 2026 12:22:12 +0000 (14:22 +0200)
commit2263ea2a0cba755ef11bdf7a4e7d75ad301ed2ac
treea406b31faa0990ad5079a2db7d183b8770ee7e7d
parenta9e35ee97005d685f9a6f36be328b2e87ee3e939
Assert rpz_ready() yields an rdataset in rpz_find_p()

A successful rpz_ready() always leaves *rdatasetp non-NULL.  Assert it
to silence a scan-build false positive:

    lib/ns/query.c:3136:7: warning: Access to field 'type' results in a dereference of a null pointer [core.NullDereference]

Assisted-by: Claude:claude-opus-4-8
lib/ns/query.c