rdataset is always non-NULL and is dereferenced unconditionally below.
Make the precondition explicit to silence a scan-build false positive:
lib/ns/query.c:2254:11: warning: Access to field 'type' results in a dereference of a null pointer (loaded from variable 'rdataset') [core.NullDereference]
Assisted-by: Claude:claude-opus-4-8
CTRACE(ISC_LOG_DEBUG(3), "query_addrrset");
REQUIRE(name != NULL);
+ REQUIRE(rdataset != NULL);
if (sigrdatasetp != NULL) {
sigrdataset = *sigrdatasetp;