]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
fix compilation
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Tue, 4 Apr 2023 16:01:26 +0000 (18:01 +0200)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Tue, 4 Apr 2023 16:01:26 +0000 (18:01 +0200)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/clientsideencryption.cpp

index 5e5633b28d3fa46d03dabeba8c789c1d0eee1618..4989e373bbd7930eae6cf5c0e4f9105e3d5112d8 100644 (file)
@@ -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