summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-07-09 16:37:57 +0200
committerGravatar Martin Szulecki2010-07-09 16:37:57 +0200
commit515f26d28667b4790a4c1db1126f68b015ed1bce (patch)
treef97c186e1ee86e699c3ca798ac555400a1e284fe /src
parentf05bbae5f00c57f3d08936159212d3e20678a8d6 (diff)
downloadidevicerestore-515f26d28667b4790a4c1db1126f68b015ed1bce.tar.gz
idevicerestore-515f26d28667b4790a4c1db1126f68b015ed1bce.tar.bz2
Fix idevice handle being NULL which leads to failure to connect to ASR
Diffstat (limited to 'src')
-rw-r--r--src/restore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/restore.c b/src/restore.c
index 44dc2aa..e4652bf 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -606,6 +606,7 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit
info("Device has successfully entered restore mode\n");
restore = client->restore->client;
+ device = client->restore->device;
// start the restore process
restore_error = restored_start_restore(restore);