From 46d6cec80542ba9c5150a379043fbd01c4563bfa Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 24 Oct 2016 17:43:14 -0400 Subject: Initialize member variable in PKCS11_EC_PrivateKey One of the constructors initialized the member, the others did not. Found by Coverity scanner. --- src/lib/prov/pkcs11/p11_ecc_key.cpp | 2 +- src/lib/prov/pkcs11/p11_ecc_key.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/prov/pkcs11/p11_ecc_key.cpp b/src/lib/prov/pkcs11/p11_ecc_key.cpp index 0c3e879d9..6ab713d3a 100644 --- a/src/lib/prov/pkcs11/p11_ecc_key.cpp +++ b/src/lib/prov/pkcs11/p11_ecc_key.cpp @@ -72,7 +72,7 @@ EC_PrivateKeyImportProperties::EC_PrivateKeyImportProperties(const std::vector ec_parameters = get_attribute_value(AttributeType::EcParams); m_domain_params = EC_Group(unlock(ec_parameters)); diff --git a/src/lib/prov/pkcs11/p11_ecc_key.h b/src/lib/prov/pkcs11/p11_ecc_key.h index 8b2ede566..151feed37 100644 --- a/src/lib/prov/pkcs11/p11_ecc_key.h +++ b/src/lib/prov/pkcs11/p11_ecc_key.h @@ -216,7 +216,7 @@ class BOTAN_DLL PKCS11_EC_PrivateKey : public virtual Private_Key, private: EC_Group m_domain_params; PointGFp m_public_key; - PublicPointEncoding m_point_encoding; + PublicPointEncoding m_point_encoding = PublicPointEncoding::Der; }; } -- cgit v1.2.3