summaryrefslogtreecommitdiffstats
path: root/src/restore.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2017-09-28 23:23:39 +0200
committerGravatar Nikias Bassen2017-09-28 23:23:39 +0200
commita39524af6efe2743622743c3a97087f64da4c863 (patch)
treea630ceb013579a4c062866c5fbce701db8be05b3 /src/restore.c
parentb99782b2f4466270dbea0f87757df30e7b835084 (diff)
downloadidevicerestore-a39524af6efe2743622743c3a97087f64da4c863.tar.gz
idevicerestore-a39524af6efe2743622743c3a97087f64da4c863.tar.bz2
Invert return value of build_identity_has_component()
Diffstat (limited to 'src/restore.c')
-rw-r--r--src/restore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/restore.c b/src/restore.c
index 8228a51..a7f0ab8 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -1069,7 +1069,7 @@ int restore_send_nor(restored_client_t restore, struct idevicerestore_client_t*
unsigned char* personalized_data = NULL;
unsigned int personalized_size = 0;
- if (!build_identity_has_component(build_identity, "RestoreSEP") &&
+ if (build_identity_has_component(build_identity, "RestoreSEP") &&
build_identity_get_component_path(build_identity, "RestoreSEP", &restore_sep_path) == 0) {
component = "RestoreSEP";
ret = extract_component(client->ipsw, restore_sep_path, &component_data, &component_size);
@@ -1094,7 +1094,7 @@ int restore_send_nor(restored_client_t restore, struct idevicerestore_client_t*
personalized_size = 0;
}
- if (!build_identity_has_component(build_identity, "SEP") &&
+ if (build_identity_has_component(build_identity, "SEP") &&
build_identity_get_component_path(build_identity, "SEP", &sep_path) == 0) {
component = "SEP";
ret = extract_component(client->ipsw, sep_path, &component_data, &component_size);