summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Sami Kortelainen2021-05-04 07:41:45 +0300
committerGravatar Nikias Bassen2021-05-26 19:21:56 +0200
commita2010182daa49f9f3bb63e8993908f8cdbca8b5e (patch)
tree250f84aa6ecf87c6607ef6347508f10b70253727 /src
parent73b9d4b298f0916f9bbb4532f3c4b63f9ab7d25b (diff)
downloadidevicerestore-a2010182daa49f9f3bb63e8993908f8cdbca8b5e.tar.gz
idevicerestore-a2010182daa49f9f3bb63e8993908f8cdbca8b5e.tar.bz2
normal: Fix incorrect return code in normal_enter_recovery()
Diffstat (limited to 'src')
-rw-r--r--src/normal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/normal.c b/src/normal.c
index ad6aeff..93ace67 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -241,7 +241,7 @@ int normal_enter_recovery(struct idevicerestore_client_t* client)
if (LOCKDOWN_E_SUCCESS != (lockdown_error = lockdownd_client_new_with_handshake(device, &lockdown, "idevicerestore"))) {
error("ERROR: Could not connect to lockdownd: %s (%d)\n", lockdownd_strerror(lockdown_error), lockdown_error);
idevice_free(device);
- return 1;
+ return -1;
}
lockdown_error = lockdownd_enter_recovery(lockdown);
}