summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;