From be282ff47be7bcf2d2f01c1d52777d49d91defae Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Fri, 17 Dec 2021 11:45:41 +0100 Subject: [PATCH] Additional harnessing on VFS activation --- Classes/VFSUtil.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Classes/VFSUtil.swift b/Classes/VFSUtil.swift index 4fae043bc..79343d154 100644 --- a/Classes/VFSUtil.swift +++ b/Classes/VFSUtil.swift @@ -186,7 +186,10 @@ import os log("[VFS] Unable to retrieve encrypted key.", .error) return false } - let secret = decrypt(encryptedText: encryptedKey) + guard let secret = decrypt(encryptedText: encryptedKey) else { + log(log: "[VFS] Unable to decryt encrypted key.", level: .error) + return false + } Factory.Instance.setVfsEncryption(encryptionModule: 2, secret: secret, secretSize: 32) log("[VFS] activated", .info) return true