From 5496badc86dc904f7973ff07409487a8b341d316 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Fri, 31 Oct 2014 14:26:14 +0100 Subject: [PATCH] fix number of args in Lua axfrfilter and remove priority from example script --- pdns/lua-auth.cc | 2 +- pdns/powerdns-example-script.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/lua-auth.cc b/pdns/lua-auth.cc index 9736d3da58..8010ed2ad6 100644 --- a/pdns/lua-auth.cc +++ b/pdns/lua-auth.cc @@ -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); diff --git a/pdns/powerdns-example-script.lua b/pdns/powerdns-example-script.lua index 8febe38486..7d49fd1063 100644 --- a/pdns/powerdns-example-script.lua +++ b/pdns/powerdns-example-script.lua @@ -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 = {} -- 2.47.2