From bf37ccda6d9301a16012f7ed2c2fa20ee8079048 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 29 Jul 2018 21:25:48 -0400 Subject: Fix initialization of 'pass' variable Copy/paste error from https://github.com/weidai11/cryptopp/commit/d51f701e0638 --- validat7.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'validat7.cpp') diff --git a/validat7.cpp b/validat7.cpp index f97911bd..a406650d 100644 --- a/validat7.cpp +++ b/validat7.cpp @@ -314,7 +314,7 @@ bool ValidateECP_Agreement() { ECDH::Domain ecdhc(ASN1::secp192r1()); ECMQV::Domain ecmqvc(ASN1::secp192r1()); - bool pass = SimpleKeyAgreementValidate(ecdhc) && pass; + bool pass = SimpleKeyAgreementValidate(ecdhc); pass = AuthenticatedKeyAgreementValidate(ecmqvc) && pass; std::cout << "Turning on point compression..." << std::endl; @@ -330,7 +330,7 @@ bool ValidateEC2N_Agreement() { ECDH::Domain ecdhc(ASN1::sect193r1()); ECMQV::Domain ecmqvc(ASN1::sect193r1()); - bool pass = SimpleKeyAgreementValidate(ecdhc) && pass; + bool pass = SimpleKeyAgreementValidate(ecdhc); pass = AuthenticatedKeyAgreementValidate(ecmqvc) && pass; std::cout << "Turning on point compression..." << std::endl; -- cgit v1.2.1