From: bert hubert Date: Mon, 25 Apr 2016 07:58:27 +0000 (+0200) Subject: grepq() has no sideeffects in dnsdist. X-Git-Tag: rec-4.0.0-alpha3~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0ff4ec2574dea5db95aa3d24cac9e40e137ebb4;p=thirdparty%2Fpdns.git grepq() has no sideeffects in dnsdist. --- diff --git a/pdns/dnsdist-lua2.cc b/pdns/dnsdist-lua2.cc index 2b5f420432..27dd903d0b 100644 --- a/pdns/dnsdist-lua2.cc +++ b/pdns/dnsdist-lua2.cc @@ -241,6 +241,7 @@ void moreLua(bool client) }); g_lua.writeFunction("grepq", [](boost::variant > > inp, boost::optional limit) { + setLuaNoSideEffect(); boost::optional nm; boost::optional dn; int msec=-1;