bind9/bin/named
Matthijs Mekking 8df629d0b2 Fix control flow issue CID 314969 in zoneconf.c
Coverity Scan identified the following issue in bin/named/zoneconf.c:

    *** CID 314969:  Control flow issues  (DEADCODE)
    /bin/named/zoneconf.c: 2212 in named_zone_inlinesigning()

    if (!inline_signing && !zone_is_dynamic &&
        cfg_map_get(zoptions, "dnssec-policy", &signing) == ISC_R_SUCCESS &&
        signing != NULL)
    {
        if (strcmp(cfg_obj_asstring(signing), "none") != 0) {
            inline_signing = true;
    >>>     CID 314969:  Control flow issues  (DEADCODE)
    >>>     Execution cannot reach the expression ""no"" inside this statement: "dns_zone_log(zone, 1, "inli...".
            dns_zone_log(
                zone, ISC_LOG_DEBUG(1), "inline-signing: %s",
                inline_signing
                ? "implicitly through dnssec-policy"
                : "no");
        } else {
                ...
        }
    }

This is because we first set 'inline_signing = true' and then check
its value in 'dns_zone_log'.
2021-01-18 11:48:09 +01:00
..
include Fix a reconfig bug wrt inline-signing 2020-11-26 10:43:27 +01:00
unix Fix possible NULL dereference in cd->dlz_destroy() 2020-10-28 15:48:58 +01:00
win32 Add libssl libraries to Windows build 2020-11-09 16:00:28 +01:00
.gitignore Complete rewrite the BIND 9 build system 2020-04-21 14:19:48 +02:00
bind9.xsl update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
builtin.c Generate PTR records for DNS64 mapped ipv4only.arpa reverses. 2020-12-11 14:17:52 +11:00
config.c Update serve-stale config defaults 2021-01-11 11:13:45 +01:00
control.c Postpone the isc_app_shutdown() after rndc response has been sent 2020-10-22 11:46:58 -07:00
controlconf.c Postpone the isc_app_shutdown() after rndc response has been sent 2020-10-22 11:46:58 -07:00
fuzz.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
geoip.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
log.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
logconf.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
main.c netmgr: Add additional safeguards to netmgr/tls.c 2020-11-10 14:17:20 +01:00
Makefile.am Use libuv's shared library handling capabilities 2020-10-28 15:48:58 +01:00
named.conf.rst Implement ipv4only.arpa forward and reverse zones as per RFC 8880. 2020-12-11 14:16:40 +11:00
named.rst Fix a reference to rndc(8) in named(8) manual page 2020-12-14 13:10:10 +01:00
server.c Treat dnssec-policy "none" as a builtin zone 2020-12-23 09:02:11 +01:00
statschannel.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
tkeyconf.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
tsigconf.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
xsl_p.h Complete rewrite the BIND 9 build system 2020-04-21 14:19:48 +02:00
zoneconf.c Fix control flow issue CID 314969 in zoneconf.c 2021-01-18 11:48:09 +01:00