]> granicus.if.org Git - pdns/commitdiff
dnsdist: Fix return-type detection with boost 1.69's tribool
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 23 Oct 2018 07:57:12 +0000 (09:57 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 23 Oct 2018 07:57:12 +0000 (09:57 +0200)
pdns/dnsdist-lua.cc

index 4936523c211552989b8c255c898d83cb8cc4072c..040696a89bf902a522ce92951651abc6f7486407 100644 (file)
@@ -75,7 +75,10 @@ void setLuaSideEffect()
 
 bool getLuaNoSideEffect()
 {
-  return g_noLuaSideEffect==true;
+  if (g_noLuaSideEffect) {
+    return true;
+  }
+  return false;
 }
 
 void resetLuaSideEffect()