Fix null pointer in ec wrapper

This commit is contained in:
JoelKatz
2015-06-19 15:53:08 -07:00
committed by Vinnie Falco
parent 72832c0fa2
commit 6ec5fa9cae
5 changed files with 26 additions and 26 deletions

View File

@@ -133,7 +133,7 @@ static ec_key ec_key_new_secp256k1_compressed()
EC_KEY_set_conv_form (key, POINT_CONVERSION_COMPRESSED);
return ec_key::acquire ((ec_key::pointer_t) key);
return ec_key((ec_key::pointer_t) key);
}
void serialize_ec_point (ec_point const& point, std::uint8_t* ptr)