]> 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:09:56 +0000 (11:09 +1000)
bin/named/zoneconf.c

index 785d392e7b28b2015a2e86e23e0eb627aa47904d..f151c45845cb30273468f502353163c91f6046bc 100644 (file)
@@ -1432,6 +1432,7 @@ named_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) {