diff --git a/src/common/NebulaUtil.cc b/src/common/NebulaUtil.cc index 42520845f3..40e6418fb8 100644 --- a/src/common/NebulaUtil.cc +++ b/src/common/NebulaUtil.cc @@ -267,7 +267,7 @@ string * one_util::aes256cbc_encrypt(const string& in, const string& password) string * one_util::aes256cbc_decrypt(const string& in, const string& password) { - unique_ptr crypted(base64_decode(in)); + string *crypted = base64_decode(in); if (!crypted || crypted->empty()) { @@ -724,4 +724,3 @@ one_util::SSLMutex::~SSLMutex() CRYPTO_set_locking_callback(NULL); } -