1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-5310 This patch replaces move-assignment with copy-assignment to avoid memory corruption (#2645)

Co-authored-by: Roman Nozdrin <rnozdrin@mariadb.com>
This commit is contained in:
Roman Nozdrin
2022-12-06 21:56:58 +03:00
committed by GitHub
parent 7d812b1b7e
commit 8bb5731ddc

View File

@ -622,10 +622,8 @@ bool load_encryption_keys()
{
if (!ret.key.empty())
{
// CSPasswdLogging::get()->log(LOG_INFO,"Using encrypted passwords. Encryption key read from '%s'.",
// path.c_str());
this_unit.key = move(ret.key);
this_unit.iv = move(ret.iv);
this_unit.key = ret.key;
this_unit.iv = ret.iv;
}
return ret.ok;
}