diff options
author | Andrej Mihajlov <and@mullvad.net> | 2020-12-21 17:57:18 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-12-22 12:46:14 +0100 |
commit | 74cd7041dcd78261832b04fff92a6e1219be345d (patch) | |
tree | e390f5872018aa2fb81a091236e3b8829b0c67a4 | |
parent | Kit: Go: use Windows-style retry sleep loop on bind updates (diff) | |
download | wireguard-apple-74cd7041dcd78261832b04fff92a6e1219be345d.tar.xz wireguard-apple-74cd7041dcd78261832b04fff92a6e1219be345d.zip |
Keychain: prevent call to stat() when determining appex path
Signed-off-by: Andrej Mihajlov <and@mullvad.net>
-rw-r--r-- | Sources/Shared/Keychain.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Sources/Shared/Keychain.swift b/Sources/Shared/Keychain.swift index e301fed..c6e7526 100644 --- a/Sources/Shared/Keychain.swift +++ b/Sources/Shared/Keychain.swift @@ -44,7 +44,7 @@ class Keychain { items[kSecAttrSynchronizable] = false items[kSecAttrAccessible] = kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly - guard let extensionPath = Bundle.main.builtInPlugInsURL?.appendingPathComponent("WireGuardNetworkExtension.appex").path else { + guard let extensionPath = Bundle.main.builtInPlugInsURL?.appendingPathComponent("WireGuardNetworkExtension.appex", isDirectory: true).path else { wg_log(.error, staticMessage: "Unable to determine app extension path") return nil } |