summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-09-27 15:56:50 +0200
committerGravatar Nikias Bassen2013-09-27 15:56:50 +0200
commit6cbdeea4dc871165f90b511ca6b81eb7139709b3 (patch)
tree925b6364aae7556102096735770effb339efb1fb
parentf68f234b4006d49be3c335df0d8bbff1b7376adf (diff)
downloadidevicerestore-6cbdeea4dc871165f90b511ca6b81eb7139709b3.tar.gz
idevicerestore-6cbdeea4dc871165f90b511ca6b81eb7139709b3.tar.bz2
ipsw: remove obsolete major version increase in ipsw_get_latest_fw
-rw-r--r--src/ipsw.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ipsw.c b/src/ipsw.c
index 7d3c45f..3abda03 100644
--- a/src/ipsw.c
+++ b/src/ipsw.c
@@ -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");