summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2020-06-23 17:37:23 +0200
committerGravatar Nikias Bassen2020-06-23 17:37:23 +0200
commit9577badbe9a05592a30a0661f1c58308e8550ebb (patch)
tree3e0ebe0535115905715a8da96b55e92228d76a9b
parent536acd3dffeb8bd5b53c1d98a60f26c8a71ccd93 (diff)
downloadidevicerestore-9577badbe9a05592a30a0661f1c58308e8550ebb.tar.gz
idevicerestore-9577badbe9a05592a30a0661f1c58308e8550ebb.tar.bz2
tss: Fix logical bug in tss_request_add_ap_tags() when selecting 'only firmware components'
-rw-r--r--src/tss.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tss.c b/src/tss.c
index 739e7b1..e990a6b 100644
--- a/src/tss.c
+++ b/src/tss.c
@@ -630,8 +630,12 @@ int tss_request_add_ap_tags(plist_t request, plist_t parameters, plist_t overrid
if (_plist_dict_get_bool(parameters, "_OnlyFWComponents")) {
plist_t info_dict = plist_dict_get_item(manifest_entry, "Info");
- if (!_plist_dict_get_bool(manifest_entry, "Trusted") && !_plist_dict_get_bool(info_dict, "IsFirmwarePayload") && !_plist_dict_get_bool(info_dict, "IsSecondaryFirmwarePayload") && !_plist_dict_get_bool(info_dict, "IsFUDFirmware")) {
- debug("DEBUG: %s: Skipping '%s' as it is neither firmware nor secondary firmware payload\n", __func__, key);
+ if (!_plist_dict_get_bool(manifest_entry, "Trusted")) {
+ debug("DEBUG: %s: Skipping '%s' as it is not trusted", __func__, key);
+ continue;
+ }
+ if (!_plist_dict_get_bool(info_dict, "IsFirmwarePayload") && !_plist_dict_get_bool(info_dict, "IsSecondaryFirmwarePayload") && !_plist_dict_get_bool(info_dict, "IsFUDFirmware")) {
+ debug("DEBUG: %s: Skipping '%s' as it is neither firmware nor secondary nor FUD firmware payload\n", __func__, key);
continue;
}
}