summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-10-20 03:38:16 +0200
committerGravatar Nikias Bassen2019-10-20 03:38:16 +0200
commit0b4810fcdde022a507019c2d2023adebd0a54e01 (patch)
treeef4f86f522da8fc13f5edc791d88f5e3a5ca7ffc /src/idevicerestore.c
parentd04ce021b928644cef3b27e025ffc8dae413cd71 (diff)
downloadidevicerestore-0b4810fcdde022a507019c2d2023adebd0a54e01.tar.gz
idevicerestore-0b4810fcdde022a507019c2d2023adebd0a54e01.tar.bz2
Error out if sending APTicket fails (older devices)
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 2e38933..0ee2bde 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -1180,7 +1180,10 @@ int idevicerestore_start(struct idevicerestore_client_t* client)
if (!client->image4supported) {
/* send ApTicket */
if (recovery_send_ticket(client) < 0) {
- error("WARNING: Unable to send APTicket\n");
+ error("ERROR: Unable to send APTicket\n");
+ if (delete_fs && filesystem)
+ unlink(filesystem);
+ return -2;
}
}
}