diff options
| author | 2017-12-07 16:41:29 +0700 | |
|---|---|---|
| committer | 2017-12-07 16:41:29 +0700 | |
| commit | 5b3fcb7fa704bcbf1a1cc655264ec0d6ab121799 (patch) | |
| tree | 38870b978dc0803b55a21dd5ca7a78d7cc56b7c4 | |
| parent | 5a85432719fb3d18027d528f87d2a44b76fd3e12 (diff) | |
| download | libimobiledevice-5b3fcb7fa704bcbf1a1cc655264ec0d6ab121799.tar.gz libimobiledevice-5b3fcb7fa704bcbf1a1cc655264ec0d6ab121799.tar.bz2 | |
mobileactivation: Don't convert activation record if it is already passed as PLIST_DATA
| -rw-r--r-- | src/mobileactivation.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mobileactivation.c b/src/mobileactivation.c index 7ae35bb..433497a 100644 --- a/src/mobileactivation.c +++ b/src/mobileactivation.c | |||
| @@ -91,6 +91,9 @@ LIBIMOBILEDEVICE_API mobileactivation_error_t mobileactivation_client_free(mobil | |||
| 91 | 91 | ||
| 92 | static plist_t plist_data_from_plist(plist_t plist) | 92 | static plist_t plist_data_from_plist(plist_t plist) |
| 93 | { | 93 | { |
| 94 | if (plist && plist_get_node_type(plist) == PLIST_DATA) { | ||
| 95 | return plist_copy(plist); | ||
| 96 | } | ||
| 94 | plist_t result = NULL; | 97 | plist_t result = NULL; |
| 95 | char *xml = NULL; | 98 | char *xml = NULL; |
| 96 | uint32_t xml_len = 0; | 99 | uint32_t xml_len = 0; |
