From 5b3fcb7fa704bcbf1a1cc655264ec0d6ab121799 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 7 Dec 2017 16:41:29 +0700 Subject: mobileactivation: Don't convert activation record if it is already passed as PLIST_DATA --- src/mobileactivation.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.1-32-gdbae