Code

bind-plugin: fix zones iteratation upper limit
authorMichal Humpula <michal.humpula@heureka.cz>
Tue, 9 Dec 2014 12:08:36 +0000 (13:08 +0100)
committerMichal Humpula <michal.humpula@heureka.cz>
Tue, 9 Dec 2014 12:08:36 +0000 (13:08 +0100)
src/bind.c

index d7b8c08f7b7c4be06ae8a4fcb96895fcd43f2ff8..59eb24913ce7008f4f789f6fe6a5cad299618ede 100644 (file)
@@ -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);