diff options
| author | 2011-06-07 17:59:22 +0200 | |
|---|---|---|
| committer | 2011-06-07 17:59:22 +0200 | |
| commit | f0487376671ffd6ac3fc121657f1fbd0acea3cb0 (patch) | |
| tree | cad2337b84c53e782d754177832e8e4262c00e23 /src/lockdown.c | |
| parent | f8f3f299a56aeccce1b978fed7620137f7072518 (diff) | |
| download | libimobiledevice-f0487376671ffd6ac3fc121657f1fbd0acea3cb0.tar.gz libimobiledevice-f0487376671ffd6ac3fc121657f1fbd0acea3cb0.tar.bz2 | |
lockdown: fix support for iOS 5
Diffstat (limited to 'src/lockdown.c')
| -rw-r--r-- | 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) | |||
| 86 | 86 | ||
| 87 | plist_t result_node = plist_dict_get_item(dict, "Result"); | 87 | plist_t result_node = plist_dict_get_item(dict, "Result"); |
| 88 | if (!result_node) { | 88 | if (!result_node) { |
| 89 | return ret; | 89 | /* iOS 5: the 'Result' key is not present anymore. |
| 90 | Just assume success here */ | ||
| 91 | return RESULT_SUCCESS; | ||
| 90 | } | 92 | } |
| 91 | 93 | ||
| 92 | plist_type result_type = plist_get_node_type(result_node); | 94 | plist_type result_type = plist_get_node_type(result_node); |
