added error handling when loading shsh files fails

This commit is contained in:
tihmstar 2017-03-30 14:38:52 +02:00
parent c119b17543
commit 45058a2e2c

View file

@ -274,6 +274,9 @@ void futurerestore::loadAPTickets(const vector<const char *> &apticketPaths){
uint64_t im4msize=0;
plist_get_data_val(ticket, &im4m, &im4msize);
if (!im4msize)
reterror(-38, "Error: failed to load shsh file %s\n",apticketPath);
_im4ms.push_back(im4m);
_aptickets.push_back(apticket);
printf("reading ticket %s done\n",apticketPath);