mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-09-20 16:15:44 +00: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)
|
CompositeKey& CompositeKey::operator=(const CompositeKey& key)
|
||||||
{
|
{
|
||||||
|
clear();
|
||||||
|
|
||||||
Q_FOREACH (Key* subKey, key.m_keys) {
|
Q_FOREACH (Key* subKey, key.m_keys) {
|
||||||
m_keys.append(subKey->clone());
|
m_keys.append(subKey->clone());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user