From: Michal Humpula Date: Tue, 9 Dec 2014 12:08:36 +0000 (+0100) Subject: bind-plugin: fix zones iteratation upper limit X-Git-Tag: collectd-5.5.0~100^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=49193e9d5d7088d02a8b0ff5873b12f4a5560c33;p=collectd.git bind-plugin: fix zones iteratation upper limit --- diff --git a/src/bind.c b/src/bind.c index d7b8c08f..59eb2491 100644 --- a/src/bind.c +++ b/src/bind.c @@ -745,7 +745,7 @@ static int bind_xml_stats_handle_zone (int version, xmlDoc *doc, /* {{{ */ xmlFree (zone_name); zone_name = NULL; - if (j >= views_num) + if (j >= views->zones_num) { xmlXPathFreeObject (path_obj); return (0);