summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ipsw.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ipsw.c b/src/ipsw.c
index 8bb5512..2965100 100644
--- a/src/ipsw.c
+++ b/src/ipsw.c
@@ -336,6 +336,11 @@ int ipsw_get_latest_fw(plist_t version_data, const char* product, char** fwurl,
return -1;
}
+ if (major == 11) {
+ /* FIXME workaround as with the iOS 7 release, Apple broke their own XML structure and logic */
+ major = 12;
+ }
+
char majstr[32]; // should be enough for a uint64_t value
sprintf(majstr, FMT_qu, (long long unsigned int)major);
n1 = plist_access_path(version_data, 7, "MobileDeviceSoftwareVersionsByVersion", majstr, "MobileDeviceSoftwareVersions", product, "Unknown", "Universal", "Restore");