summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2017-12-07 16:41:29 +0700
committerGravatar Nikias Bassen2017-12-07 16:41:29 +0700
commit5b3fcb7fa704bcbf1a1cc655264ec0d6ab121799 (patch)
tree38870b978dc0803b55a21dd5ca7a78d7cc56b7c4
parent5a85432719fb3d18027d528f87d2a44b76fd3e12 (diff)
downloadlibimobiledevice-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.c3
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
static plist_t plist_data_from_plist(plist_t plist)
{
+ if (plist && plist_get_node_type(plist) == PLIST_DATA) {
+ return plist_copy(plist);
+ }
plist_t result = NULL;
char *xml = NULL;
uint32_t xml_len = 0;