]> granicus.if.org Git - pdns/commitdiff
Use correct id numbers for domains
authorAki Tuomi <cmouse@cmouse.fi>
Tue, 19 Jan 2016 08:38:12 +0000 (10:38 +0200)
committerAki Tuomi <cmouse@cmouse.fi>
Tue, 19 Jan 2016 08:38:12 +0000 (10:38 +0200)
modules/geoipbackend/geoipbackend.cc

index 94c1fdce820dc387741585125d11286d471f53e4..43c82de4c00160fe5300ec0f9b4493449f4cc6a5 100644 (file)
@@ -101,7 +101,7 @@ void GeoIPBackend::initialize() {
 
   for(YAML::Node domain :  config["domains"]) {
     GeoIPDomain dom;
-    dom.id = s_domains.size();
+    dom.id = tmp_domains.size();
     dom.domain = DNSName(domain["domain"].as<string>());
     dom.ttl = domain["ttl"].as<int>();