summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-06-05 19:10:38 +0200
committerGravatar Nikias Bassen2021-06-05 19:10:38 +0200
commitd2fc0a88fa1219c71247afadf54da2a214521226 (patch)
tree3167dcce309580be45763309ce7e7e388d4281f8 /src
parent0f34eba9beb51acf482fa3d9d400ae198b7061eb (diff)
downloadidevicerestore-d2fc0a88fa1219c71247afadf54da2a214521226.tar.gz
idevicerestore-d2fc0a88fa1219c71247afadf54da2a214521226.tar.bz2
restore: Error out if no matching build identity can be found
Diffstat (limited to 'src')
-rw-r--r--src/restore.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/restore.c b/src/restore.c
index 45dda07..984b3ab 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -2856,6 +2856,10 @@ int restore_send_personalized_boot_object_v3(restored_client_t restore, struct i
}
if (!path) {
plist_t build_identity = restore_get_build_identity_from_request(client, msg);
+ if (!build_identity) {
+ error("ERROR: Unable to find a matching build identity\n");
+ return -1;
+ }
if (build_identity_get_component_path(build_identity, component, &path) < 0) {
error("ERROR: Unable to find %s path from build identity\n", component);
return -1;