From c9cf248e5d5c870aaeec939811dab1297b7c169e Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Tue, 4 Apr 2023 18:01:26 +0200 Subject: [PATCH] fix compilation Signed-off-by: Matthieu Gallien --- src/libsync/clientsideencryption.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsync/clientsideencryption.cpp b/src/libsync/clientsideencryption.cpp index 5e5633b28..4989e373b 100644 --- a/src/libsync/clientsideencryption.cpp +++ b/src/libsync/clientsideencryption.cpp @@ -1760,11 +1760,11 @@ bool FolderMetadata::recoverMetadataKeyChecksum(const QByteArray &expectedChecks } hashAlgorithm.addData(metadataKey); if (hashAlgorithm.result().toHex() == expectedChecksum) { - break; + return true; } } while (std::next_permutation(sortedFiles.begin(), sortedFiles.end(), sortLambda)); - return expectedChecksum; + return false; } bool FolderMetadata::isMetadataSetup() const -- 2.30.2