summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-12-07 14:33:47 +0100
committerGravatar Martin Szulecki2012-12-07 14:33:47 +0100
commitded478691ff9a14e1f631c8baa3609f7c7c0aae7 (patch)
treec03626a75ebb6c04d102b789acce07036920da8c
parent09a39c8adf140752d0b7de09c101f2b1e5a50ee9 (diff)
downloadidevicerestore-ded478691ff9a14e1f631c8baa3609f7c7c0aae7.tar.gz
idevicerestore-ded478691ff9a14e1f631c8baa3609f7c7c0aae7.tar.bz2
restore: Fix "hanging" and not exiting on failed restore due to variable typo
-rw-r--r--src/restore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/restore.c b/src/restore.c
index 227918a..e02d600 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -1639,7 +1639,7 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit
while ((client->flags & FLAG_QUIT) == 0) {
// finally, if any of these message handlers returned -1 then we encountered
// an unrecoverable error, so we need to bail.
- if (error < 0) {
+ if (err < 0) {
error("ERROR: Unable to successfully restore device\n");
client->flags |= FLAG_QUIT;
}