diff --git a/src/crypto/elliptic.cpp b/src/crypto/elliptic.cpp index 23f5b37..5f5b044 100644 --- a/src/crypto/elliptic.cpp +++ b/src/crypto/elliptic.cpp @@ -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 )