From d2fc0a88fa1219c71247afadf54da2a214521226 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 5 Jun 2021 19:10:38 +0200 Subject: restore: Error out if no matching build identity can be found --- src/restore.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.1-32-gdbae