summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-07-17 18:39:02 +0200
committerGravatar Nikias Bassen2012-07-17 18:39:02 +0200
commitbe937bb0a1bc39455871fd22aea53f8d1d8dbf72 (patch)
treee5999236beeb135cb36d5a7f807b5f60c6c99f67
parent544d49f7613fe1bcfac88d545849c005b80a7796 (diff)
downloadidevicerestore-be937bb0a1bc39455871fd22aea53f8d1d8dbf72.tar.gz
idevicerestore-be937bb0a1bc39455871fd22aea53f8d1d8dbf72.tar.bz2
recovery: Send "preventive" ZLP directly after sending kernelcache component
-rw-r--r--src/recovery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/recovery.c b/src/recovery.c
index 5e1c4c2..2127398 100644
--- a/src/recovery.c
+++ b/src/recovery.c
@@ -407,6 +407,8 @@ int recovery_send_kernelcache(struct idevicerestore_client_t* client, plist_t bu
return -1;
}
+ irecv_control_transfer(client->recovery->client, 0x21, 1, 0, 0, 0, 0, 5000);
+
if (client->restore_boot_args) {
char setba[256];
strcpy(setba, "setenv boot-args ");
@@ -420,8 +422,6 @@ int recovery_send_kernelcache(struct idevicerestore_client_t* client, plist_t bu
return -1;
}
- irecv_control_transfer(client->recovery->client, 0x21, 1, 0, 0, 0, 0, 5000);
-
return 0;
}