From: Remi Gacogne Date: Tue, 23 Oct 2018 07:57:12 +0000 (+0200) Subject: dnsdist: Fix return-type detection with boost 1.69's tribool X-Git-Tag: dnsdist-1.3.3~32^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d7a263770fea869e058e34c96d1319e30659feb9;p=thirdparty%2Fpdns.git dnsdist: Fix return-type detection with boost 1.69's tribool --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 4936523c21..040696a89b 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -75,7 +75,10 @@ void setLuaSideEffect() bool getLuaNoSideEffect() { - return g_noLuaSideEffect==true; + if (g_noLuaSideEffect) { + return true; + } + return false; } void resetLuaSideEffect()