mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Do not overwrite keyRing element with itself
Using KeePassXC 2.5.0 with a database created with KeePassXC 2.5.0, decrypted messages from keepassxc-proxy contain an 'oldHash' and a 'hash' value that are equal. In that case, we must not try to replace the database hash ID in the keyRing with itself, as it effectively leads to the keyRing entry to be destroyed without replacement when using the current implementation.
This commit is contained in:
parent
c86c44adf0
commit
cf1c25f408
1 changed files with 1 additions and 1 deletions
|
|
@ -851,7 +851,7 @@ keepass.updateLastUsed = function(hash) {
|
|||
};
|
||||
// Update the databaseHash from legacy hash
|
||||
keepass.updateDatabaseHash = function(oldHash, newHash) {
|
||||
if (!oldHash || !newHash) {
|
||||
if (!oldHash || !newHash || oldHash === newHash) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue