]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence compiler warning by adding a assertion
authorMark Andrews <marka@isc.org>
Wed, 27 Feb 2013 22:47:49 +0000 (09:47 +1100)
committerMark Andrews <marka@isc.org>
Wed, 27 Feb 2013 22:47:49 +0000 (09:47 +1100)
bin/named/server.c

index 94ea2633b481ce3f5f82442cc667399dea046ddf..3a785bbce0eeb9c8fa2cd2135137ff425fba1638 100644 (file)
@@ -1779,6 +1779,7 @@ configure_rpz(dns_view_t *view, const cfg_obj_t *rpz_obj,
        for (i = 0;
             zone_element != NULL;
             ++i, zone_element = cfg_list_next(zone_element)) {
+               INSIST(old != NULL || !*old_rpz_okp);
                if (*old_rpz_okp && i < old->p.num_zones) {
                        old_zone = old->zones[i];
                } else {