28 lines
778 B
Diff
28 lines
778 B
Diff
From f0487376671ffd6ac3fc121657f1fbd0acea3cb0 Mon Sep 17 00:00:00 2001
|
|
From: Nikias Bassen <nikias@gmx.li>
|
|
Date: Tue, 7 Jun 2011 17:59:22 +0200
|
|
Subject: [PATCH] lockdown: fix support for iOS 5
|
|
|
|
---
|
|
src/lockdown.c | 4 +++-
|
|
1 files changed, 3 insertions(+), 1 deletions(-)
|
|
|
|
diff --git a/src/lockdown.c b/src/lockdown.c
|
|
index 935f24e..15b3d69 100644
|
|
--- a/src/lockdown.c
|
|
+++ b/src/lockdown.c
|
|
@@ -86,7 +86,9 @@ static int lockdown_check_result(plist_t dict, const char *query_match)
|
|
|
|
plist_t result_node = plist_dict_get_item(dict, "Result");
|
|
if (!result_node) {
|
|
- return ret;
|
|
+ /* iOS 5: the 'Result' key is not present anymore.
|
|
+ Just assume success here */
|
|
+ return RESULT_SUCCESS;
|
|
}
|
|
|
|
plist_type result_type = plist_get_node_type(result_node);
|
|
--
|
|
1.7.7.3
|
|
|