From: Michal Humpula Date: Mon, 6 Jul 2015 11:43:43 +0000 (+0200) Subject: bind: fix zone count check X-Git-Tag: collectd-5.5.1~89 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9424954ff108699e798e677e9e78428ca74d04b8;p=collectd.git bind: fix zone count check --- 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];