mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-24 23:35:37 -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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue