]> granicus.if.org Git - pdns/commitdiff
fix number of args in Lua axfrfilter and remove priority from example script
authorKees Monshouwer <mind04@monshouwer.org>
Fri, 31 Oct 2014 13:26:14 +0000 (14:26 +0100)
committermind04 <mind04@monshouwer.org>
Fri, 31 Oct 2014 13:26:14 +0000 (14:26 +0100)
pdns/lua-auth.cc
pdns/powerdns-example-script.lua

index 9736d3da587f1fd1d0eca3ebc72daea0319de933..8010ed2ad6a05b2ba3c4eabd3e9209f877e924d3 100644 (file)
@@ -60,7 +60,7 @@ bool AuthLua::axfrfilter(const ComboAddress& remote, const string& zone, const D
   lua_pushnumber(d_lua,  in.ttl );
   lua_pushstring(d_lua,  in.content.c_str() );
 
-  if(lua_pcall(d_lua,  7, 2, 0)) { // error 
+  if(lua_pcall(d_lua,  6, 2, 0)) { // error
     string error=string("lua error in axfrfilter: ")+lua_tostring(d_lua, -1);
     lua_pop(d_lua, 1);
     throw runtime_error(error);
index 8febe38486ce933de11d1fa3183d53e98e646ed5..7d49fd106305b0d39235bd0c54005026a35ee509 100644 (file)
@@ -84,7 +84,7 @@ function nxdomain ( remoteip, domain, qtype )
        end
 end
 
-function axfrfilter(remoteip, zone, qname, qtype, ttl, priority, content)
+function axfrfilter(remoteip, zone, qname, qtype, ttl, content)
        if qtype ~= pdns.SOA or zone ~= "secured-by-gost.org"
        then
                ret = {}