diff options
Diffstat (limited to 'src/ipsw.c')
-rw-r--r-- | src/ipsw.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -313,14 +313,8 @@ int ipsw_get_latest_fw(plist_t version_data, const char* product, char** fwurl, sprintf(majstr, FMT_qu, (long long unsigned int)major); n1 = plist_access_path(version_data, 7, "MobileDeviceSoftwareVersionsByVersion", majstr, "MobileDeviceSoftwareVersions", product, "Unknown", "Universal", "Restore"); if (!n1) { - // if not found, increase major version number by one and try again - major++; - sprintf(majstr, FMT_qu, (long long unsigned int)major); - n1 = plist_access_path(version_data, 7, "MobileDeviceSoftwareVersionsByVersion", majstr, "MobileDeviceSoftwareVersions", product, "Unknown", "Universal", "Restore"); - if (!n1) { - error("%s: ERROR: Can't get Unknown/Universal/Restore node?!\n", __func__); - return -1; - } + error("%s: ERROR: Can't get Unknown/Universal/Restore node?!\n", __func__); + return -1; } plist_t n2 = plist_dict_get_item(n1, "BuildVersion"); |