]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
some more ()'s for readability 10980/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 15 Nov 2021 12:35:02 +0000 (13:35 +0100)
committerGitHub <noreply@github.com>
Mon, 15 Nov 2021 12:35:02 +0000 (13:35 +0100)
Co-authored-by: Remi Gacogne <github@coredump.fr>
pdns/validate.cc

index 12df3afc432d56166c6e138ba18716e8c61f027e..1417e5ab491cae10d1822278caa6681cfbc74948 100644 (file)
@@ -937,7 +937,7 @@ static bool checkSignatureWithKey(time_t now, const shared_ptr<RRSIGRecordConten
       }
     }
     else {
-      ede = (sig->d_siginception - g_signatureInceptionSkew > now) ? vState::BogusSignatureNotYetValid : vState::BogusSignatureExpired;
+      ede = ((sig->d_siginception - g_signatureInceptionSkew) > now) ? vState::BogusSignatureNotYetValid : vState::BogusSignatureExpired;
       LOG("Signature is "<<(ede == vState::BogusSignatureNotYetValid ? "not yet valid" : "expired")<<" (inception: "<<sig->d_siginception<<", inception skew: "<<g_signatureInceptionSkew<<", expiration: "<<sig->d_sigexpire<<", now: "<<now<<")"<<endl);
      }
   }