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: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F7897%2Fhead;p=thirdparty%2Fpdns.git 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 0e2b9102b8..12bbaa6621 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(); }