diff options
author | Sami Kortelainen | 2021-05-04 07:41:45 +0300 |
---|---|---|
committer | Nikias Bassen | 2021-05-26 19:21:56 +0200 |
commit | a2010182daa49f9f3bb63e8993908f8cdbca8b5e (patch) | |
tree | 250f84aa6ecf87c6607ef6347508f10b70253727 | |
parent | 73b9d4b298f0916f9bbb4532f3c4b63f9ab7d25b (diff) | |
download | idevicerestore-a2010182daa49f9f3bb63e8993908f8cdbca8b5e.tar.gz idevicerestore-a2010182daa49f9f3bb63e8993908f8cdbca8b5e.tar.bz2 |
normal: Fix incorrect return code in normal_enter_recovery()
-rw-r--r-- | src/normal.c | 2 |
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); } |