]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
CID 469729: Remove leftover return call
authorMatthijs Mekking <matthijs@isc.org>
Wed, 6 Dec 2023 09:38:01 +0000 (10:38 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 6 Dec 2023 09:51:15 +0000 (10:51 +0100)
This 'return (ret);' call can never be reached and should have been
removed as part of commit 75e0d394dd2147a0b07524521c084a71801e4eee.

lib/isccfg/kaspconf.c

index 861cf514b331fd5755fd6ed10f21fdad69e205cf..1a2b0da47c7edeb1cfc8bd65aabd6d7eee6cc5d3 100644 (file)
@@ -254,7 +254,6 @@ cfg_nsec3param_fromconfig(const cfg_obj_t *config, dns_kasp_t *kasp,
        uint32_t saltlen = DEFAULT_NSEC3PARAM_SALTLEN;
        uint32_t badalg = 0;
        bool optout = false;
-       isc_result_t ret = ISC_R_SUCCESS;
 
        /* How many iterations. */
        obj = cfg_tuple_get(config, "iterations");
@@ -297,7 +296,6 @@ cfg_nsec3param_fromconfig(const cfg_obj_t *config, dns_kasp_t *kasp,
                            "not allowed, must be zero",
                            iter);
                return (DNS_R_NSEC3ITERRANGE);
-               return (ret);
        }
 
        /* Opt-out? */