From 9424954ff108699e798e677e9e78428ca74d04b8 Mon Sep 17 00:00:00 2001 From: Michal Humpula Date: Mon, 6 Jul 2015 13:43:43 +0200 Subject: [PATCH] bind: fix zone count check --- src/bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bind.c b/src/bind.c index 2ad50f10..32b0f16e 100644 --- a/src/bind.c +++ b/src/bind.c @@ -763,7 +763,7 @@ static int bind_xml_stats_handle_zone (int version, xmlDoc *doc, /* {{{ */ xmlFree (zone_name); zone_name = NULL; - if (j >= views->zones_num) + if (j >= view->zones_num) return (0); zone_name = view->zones[j]; -- 2.30.2