bind9/lib/ns
Michał Kępień 07592d1315 Check for NULL before dereferencing qctx->rpz_st
Commit 9ffb4a7ba1 causes Clang Static
Analyzer to flag a potential NULL dereference in query_nxdomain():

    query.c:9394:26: warning: Dereference of null pointer [core.NullDereference]
            if (!qctx->nxrewrite || qctx->rpz_st->m.rpz->addsoa) {
                                    ^~~~~~~~~~~~~~~~~~~
    1 warning generated.

The warning above is for qctx->rpz_st potentially being a NULL pointer
when query_nxdomain() is called from query_resume().  This is a false
positive because none of the database lookup result codes currently
causing query_nxdomain() to be called (DNS_R_EMPTYWILD, DNS_R_NXDOMAIN)
can be returned by a database lookup following a recursive resolution
attempt.  Add a NULL check nevertheless in order to future-proof the
code and silence Clang Static Analyzer.
2022-06-13 14:03:16 +02:00
..
include Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
client.c There can no longer be multiple compression methods 2022-06-01 13:00:40 +01:00
hooks.c Move netmgr/uv-compat.h to <isc/uv.h> 2022-05-03 10:02:19 +02:00
interfacemgr.c Make all tasks to be bound to a thread 2022-05-25 16:04:51 +02:00
listenlist.c Extend TLS context cache with TLS client session cache 2022-05-20 20:13:20 +03:00
log.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
Makefile.am Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
notify.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
query.c Check for NULL before dereferencing qctx->rpz_st 2022-06-13 14:03:16 +02:00
server.c Remove the keep-response-order ACL map 2022-02-18 09:16:03 +01:00
sortlist.c Add isc_rwlock around dns_aclenv .localhost and .localnets member 2022-04-04 19:27:00 +02:00
stats.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
tests Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
update.c Create per-thread task and memory context for zonemgr 2022-04-01 23:50:34 +02:00
xfrout.c DNS name compression does not depend on the EDNS version 2022-06-01 13:00:40 +01:00