]> 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:52:17 +0000 (11:52 +1000)
(cherry picked from commit ac9e2667496d26bc624a00dc4491faf9de84fbd3)

bin/named/zoneconf.c

index 243f627a8701001be914e3f140836f74a2829e68..12eddd79c2639c846e848ebebf24a9a6bc54c660 100644 (file)
@@ -1402,6 +1402,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) {