summaryrefslogtreecommitdiffstats
path: root/src/recovery.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-02-02 20:08:34 +0100
committerGravatar Nikias Bassen2012-02-02 20:08:34 +0100
commit6ef724e72be1060641c792f480ab34aab0ea738f (patch)
treef371ebad76762f1928ef58c3c4550468f731103e /src/recovery.c
parentf61d7a2fcc388e74a0a01c08ef5abd31c456e54a (diff)
downloadidevicerestore-6ef724e72be1060641c792f480ab34aab0ea738f.tar.gz
idevicerestore-6ef724e72be1060641c792f480ab34aab0ea738f.tar.bz2
recovery: fix recovery_send_component
Diffstat (limited to 'src/recovery.c')
-rw-r--r--src/recovery.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/recovery.c b/src/recovery.c
index e2e07b7..0487322 100644
--- a/src/recovery.c
+++ b/src/recovery.c
@@ -197,21 +197,18 @@ int recovery_send_component(struct idevicerestore_client_t* client, plist_t buil
if (client->tss) {
if (tss_get_entry_path(client->tss, component, &path) < 0) {
- error("ERROR: Unable to get component path\n");
- return -1;
+ debug("NOTE: No path for component %s in TSS, will fetch from build_identity\n", component);
}
- } else {
+ }
+ if (!path) {
if (build_identity_get_component_path(build_identity, component, &path) < 0) {
- error("ERROR: Unable to get component: %s\n", component);
+ error("ERROR: Unable to get path for component '%s'\n", component);
if (path)
free(path);
return -1;
}
}
- info("Resetting recovery mode connection...\n");
- irecv_reset(client->recovery->client);
-
if (client->tss)
info("%s will be signed\n", component);