fix PKCS12 move constructor

This commit is contained in:
Alex Fabijanic 2017-09-26 15:32:59 -05:00
parent ddbe53e1d0
commit 9ac76b4943

View File

@ -87,12 +87,11 @@ PKCS12Container& PKCS12Container::operator = (const PKCS12Container& other)
PKCS12Container::PKCS12Container(PKCS12Container&& other):
_pKey(other._pKey),
_pX509Cert(std::move(other._pX509Cert)),
_caCertList(std::move(other._caCertList)),
_pkcsFriendlyname(std::move(other._pkcsFriendlyname))
{
if (_pKey) EVP_PKEY_free(_pKey);
_pKey = other._pKey;
other._pKey = 0;
}