]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Set obj to NULL so INSIST makes sense
authorMark Andrews <marka@isc.org>
Wed, 20 May 2020 01:56:01 +0000 (11:56 +1000)
committerMark Andrews <marka@isc.org>
Mon, 25 May 2020 01:56:14 +0000 (11:56 +1000)
(cherry picked from commit ac9e2667496d26bc624a00dc4491faf9de84fbd3)

bin/named/zoneconf.c

index e01b095bb448a04e6876ebf8c61c3a879dc1c1d0..55f191bad4c3b7034d34d2a8cabbfb9ac65d56a8 100644 (file)
@@ -1250,6 +1250,7 @@ ns_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
                INSIST(result == ISC_R_SUCCESS);
                dns_zone_setrequestixfr(zone, cfg_obj_asboolean(obj));
 
+               obj = NULL;
                checknames(ztype, maps, &obj);
                INSIST(obj != NULL);
                if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {