mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 16:59:44 -05:00
Make sure KeePass1Reader::key() isn't used before the variables are set.
This commit is contained in:
parent
1f5564760f
commit
d182586557
@ -355,6 +355,9 @@ SymmetricCipherStream* KeePass1Reader::testKeys(const QString& password, const Q
|
||||
|
||||
QByteArray KeePass1Reader::key(const QByteArray& password, const QByteArray& keyfileData)
|
||||
{
|
||||
Q_ASSERT(!m_masterSeed.isEmpty());
|
||||
Q_ASSERT(!m_transformSeed.isEmpty());
|
||||
|
||||
KeePass1Key key;
|
||||
key.setPassword(password);
|
||||
key.setKeyfileData(keyfileData);
|
||||
|
Loading…
Reference in New Issue
Block a user