dns/dnsdist: replace r482789 with upstream version

Upstream chose more verbose fix via if() construct where indeterminate
value takes false branch. Similar behavior to explict conversion.
This commit is contained in:
Jan Beich 2018-10-26 00:31:00 +00:00
parent be35077f23
commit 0c5b33d4a3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=482997

View File

@ -1,13 +1,16 @@
https://github.com/PowerDNS/pdns/issues/7091
https://github.com/PowerDNS/pdns/commit/d7a263770fea
--- dnsdist-lua.cc.orig 2018-07-10 12:43:20 UTC
+++ dnsdist-lua.cc
@@ -73,7 +73,7 @@ void setLuaSideEffect()
@@ -73,7 +73,10 @@ void setLuaSideEffect()
bool getLuaNoSideEffect()
{
- return g_noLuaSideEffect==true;
+ return bool{g_noLuaSideEffect};
+ if (g_noLuaSideEffect) {
+ return true;
+ }
+ return false;
}
void resetLuaSideEffect()