Make sure KeePass1Reader::key() isn't used before the variables are set.

This commit is contained in:
Felix Geyer 2013-04-14 16:26:55 +02:00
parent 1f5564760f
commit d182586557

View File

@ -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);