Skip to content

Commit

Permalink
Show proper error message when key is wrong for .kdb files.
Browse files Browse the repository at this point in the history
  • Loading branch information
debfx authored and droidmonkey committed Sep 30, 2016
1 parent 8a7e988 commit ba68e0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/format/KeePass1Reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,10 @@ SymmetricCipherStream* KeePass1Reader::testKeys(const QString& password, const Q
}
}

if (!cipherStream) {
raiseError(tr("Wrong key or database file is corrupt."));
}

return cipherStream.take();
}

Expand Down

0 comments on commit ba68e0a

Please sign in to comment.