From b5ccc424e816dd546f8a522752b2ee3d0a673ff7 Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Tue, 3 Sep 2019 19:52:28 +0200 Subject: [PATCH] F #3064: Fix compile error --- src/common/NebulaUtil.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } -