mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04: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