fix bug converting 'null' private key to variant

This commit is contained in:
Daniel Larimer 2013-07-17 02:01:17 -04:00
parent a1c8138b38
commit 154a8ab628

View file

@ -299,6 +299,11 @@ struct ssl_bignum
fc::sha256 private_key::get_secret()const
{
if( !my->_key )
{
return fc::sha256();
}
fc::sha256 sec;
const BIGNUM* bn = EC_KEY_get0_private_key(my->_key);
if( bn == NULL )