diff options
author | Nikias Bassen | 2021-06-05 19:10:38 +0200 |
---|---|---|
committer | Nikias Bassen | 2021-06-05 19:10:38 +0200 |
commit | d2fc0a88fa1219c71247afadf54da2a214521226 (patch) | |
tree | 3167dcce309580be45763309ce7e7e388d4281f8 | |
parent | 0f34eba9beb51acf482fa3d9d400ae198b7061eb (diff) | |
download | idevicerestore-d2fc0a88fa1219c71247afadf54da2a214521226.tar.gz idevicerestore-d2fc0a88fa1219c71247afadf54da2a214521226.tar.bz2 |
restore: Error out if no matching build identity can be found
-rw-r--r-- | src/restore.c | 4 |
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; |