From: Peter van Dijk Date: Sat, 8 Jun 2019 19:20:48 +0000 (+0200) Subject: auth LUA: explicitly unset ecswho if we are not setting it, fixes #7896 X-Git-Tag: auth-4.2.0-rc2~5^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2cefbf5a976e3ae94bf6ccfaa3bd3b75648a98c;p=pdns auth LUA: explicitly unset ecswho if we are not setting it, fixes #7896 --- diff --git a/pdns/lua-record.cc b/pdns/lua-record.cc index 0e2b9102b..12bbaa662 100644 --- a/pdns/lua-record.cc +++ b/pdns/lua-record.cc @@ -490,6 +490,7 @@ std::vector> luaSynth(const std::string& code, cons bestwho=dnsp.getRealRemote().getNetwork(); } else { + lua.writeVariable("ecswho", nullptr); bestwho=dnsp.getRemote(); }