]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
grepq() has no sideeffects in dnsdist.
authorbert hubert <bert.hubert@netherlabs.nl>
Mon, 25 Apr 2016 07:58:27 +0000 (09:58 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Mon, 25 Apr 2016 07:59:06 +0000 (09:59 +0200)
pdns/dnsdist-lua2.cc

index 2b5f42043291f0011679ba474c03c5e3aa62b608..27dd903d0b0cb8df1f46a38689482c76710fc47a 100644 (file)
@@ -241,6 +241,7 @@ void moreLua(bool client)
     });
 
   g_lua.writeFunction("grepq", [](boost::variant<string, vector<pair<int,string> > > inp, boost::optional<unsigned int> limit) {
+      setLuaNoSideEffect();
       boost::optional<Netmask>  nm;
       boost::optional<DNSName> dn;
       int msec=-1;