summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2011-06-07 17:59:22 +0200
committerGravatar Martin Szulecki2012-03-22 18:50:02 +0100
commit856576e792d06baf4b97eda688fef65198aab497 (patch)
treeab821bad69b8509e55547778d3ab9d75fad93ced /src
parentf98580b1926469accdea9ba6f6318610c5ffa77d (diff)
downloadlibimobiledevice-856576e792d06baf4b97eda688fef65198aab497.tar.gz
libimobiledevice-856576e792d06baf4b97eda688fef65198aab497.tar.bz2
lockdown: fix support for iOS 5
Diffstat (limited to 'src')
-rw-r--r--src/lockdown.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lockdown.c b/src/lockdown.c
index 1764a87..b4737ae 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -81,7 +81,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);