summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2016-10-04 14:37:57 +0200
committerGravatar Nikias Bassen2016-10-04 14:37:57 +0200
commit1fa41702b6c7b8b169a33b79125d3b24f23c2da8 (patch)
treee4d4db75690f47eac70fd492ac70bcdddba71782 /tools
parent00424f40574641d1360c9b1115770f5cc5d19a72 (diff)
downloadlibimobiledevice-1fa41702b6c7b8b169a33b79125d3b24f23c2da8.tar.gz
libimobiledevice-1fa41702b6c7b8b169a33b79125d3b24f23c2da8.tar.bz2
idevicebackup2: Fix assertion occuring when copying non-present MEID
Diffstat (limited to 'tools')
-rw-r--r--tools/idevicebackup2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c
index 2c868d7..eb78b06 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -399,7 +399,8 @@ static plist_t mobilebackup_factory_info_plist_new(const char* udid, idevice_t d
plist_dict_set_item(ret, "Last Backup Date", plist_new_date(time(NULL) - MAC_EPOCH, 0));
value_node = plist_dict_get_item(root_node, "MobileEquipmentIdentifier");
- plist_dict_set_item(ret, "MEID", plist_copy(value_node));
+ if (value_node)
+ plist_dict_set_item(ret, "MEID", plist_copy(value_node));
value_node = plist_dict_get_item(root_node, "PhoneNumber");
if (value_node && (plist_get_node_type(value_node) == PLIST_STRING)) {