mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-21 12:38:12 -04:00
Make sure KeePass1Reader::key() isn't used before the variables are set.
This commit is contained in:
parent
1f5564760f
commit
d182586557
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue