mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04: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)
|
QByteArray KeePass1Reader::key(const QByteArray& password, const QByteArray& keyfileData)
|
||||||
{
|
{
|
||||||
|
Q_ASSERT(!m_masterSeed.isEmpty());
|
||||||
|
Q_ASSERT(!m_transformSeed.isEmpty());
|
||||||
|
|
||||||
KeePass1Key key;
|
KeePass1Key key;
|
||||||
key.setPassword(password);
|
key.setPassword(password);
|
||||||
key.setKeyfileData(keyfileData);
|
key.setKeyfileData(keyfileData);
|
||||||
|
Loading…
Reference in New Issue
Block a user