bind: fix zone count check
authorMichal Humpula <michal.humpula@hudrydum.cz>
Mon, 6 Jul 2015 11:43:43 +0000 (13:43 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Tue, 7 Jul 2015 21:28:37 +0000 (23:28 +0200)
src/bind.c

index 2ad50f1..32b0f16 100644 (file)
@@ -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];