mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 08:49:42 -05:00
Clear keys in assignment operator of composite key.
Fixes corruption of key if master key and then transform rounds is changed.
This commit is contained in:
parent
4e2407b3ba
commit
db52267400
@ -49,6 +49,8 @@ CompositeKey* CompositeKey::clone() const
|
||||
|
||||
CompositeKey& CompositeKey::operator=(const CompositeKey& key)
|
||||
{
|
||||
clear();
|
||||
|
||||
Q_FOREACH (Key* subKey, key.m_keys) {
|
||||
m_keys.append(subKey->clone());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user