Commit f7c48255 authored by Mark Andrews's avatar Mark Andrews

silence compiler warning by adding a assertion

parent de122383
...@@ -1779,6 +1779,7 @@ configure_rpz(dns_view_t *view, const cfg_obj_t *rpz_obj, ...@@ -1779,6 +1779,7 @@ configure_rpz(dns_view_t *view, const cfg_obj_t *rpz_obj,
for (i = 0; for (i = 0;
zone_element != NULL; zone_element != NULL;
++i, zone_element = cfg_list_next(zone_element)) { ++i, zone_element = cfg_list_next(zone_element)) {
INSIST(old != NULL || !*old_rpz_okp);
if (*old_rpz_okp && i < old->p.num_zones) { if (*old_rpz_okp && i < old->p.num_zones) {
old_zone = old->zones[i]; old_zone = old->zones[i];
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment