]> granicus.if.org Git - pdns/commitdiff
Fix for compile error introduced by 63851c6
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Tue, 27 Aug 2013 07:58:43 +0000 (09:58 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Tue, 27 Aug 2013 08:01:47 +0000 (10:01 +0200)
"update LUABackend::setDomainMetadata signature" - while my updating of
the signature is great, there apparently was no compile test prior to
submitting.

modules/luabackend/dnssec.cc

index df93fda1a819a466d3309b9144a25111210a0efc..3529a08d0d3f3a520145f55fcd9649590a6d9d9a 100644 (file)
@@ -479,7 +479,7 @@ bool LUABackend::getTSIGKey(const string& name, string* algorithm, string* conte
     return true;
 }
 
-bool LUABackend::setDomainMetadata(const string& name, const std::string& kind, std::vector<std::string>& meta) {
+bool LUABackend::setDomainMetadata(const string& name, const std::string& kind, const std::vector<std::string>& meta) {
 
     if(f_lua_setdomainmetadata == 0) 
        return false;
@@ -493,7 +493,8 @@ bool LUABackend::setDomainMetadata(const string& name, const std::string& kind,
     lua_pushstring(lua, kind.c_str());
 
     lua_newtable(lua);
-    std::vector<std::string>::iterator i;
+
+    std::vector<std::string>::const_iterator i;
 
     int c = 0;