Skip to content

Commit

Permalink
fix wrong if condition
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
  • Loading branch information
mgallien committed Jan 27, 2025
1 parent 53bf28e commit fb0b89f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsync/clientsideencryption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1694,7 +1694,7 @@ void ClientSideEncryption::decryptPrivateKey(const AccountPtr &account, const QB
_privateKey = privateKey;
} else {
const auto deprecatedSha1PrivateKey = EncryptionHelper::decryptPrivateKey(deprecatedSha1Password, key);
if (!privateKey.isEmpty()) {
if (!deprecatedSha1PrivateKey.isEmpty()) {
_privateKey = deprecatedSha1PrivateKey;
} else {
_privateKey = EncryptionHelper::decryptPrivateKey(deprecatedPassword, key);
Expand Down

0 comments on commit fb0b89f

Please sign in to comment.