From: Mark Andrews Date: Wed, 27 Feb 2013 22:47:49 +0000 (+1100) Subject: silence compiler warning by adding a assertion X-Git-Tag: v9.10.0a1~470 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=f7c482550110216209ce6c382a37606420638d8e;p=thirdparty%2Fbind9.git silence compiler warning by adding a assertion --- diff --git a/bin/named/server.c b/bin/named/server.c index 94ea2633b48..3a785bbce0e 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -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 {