From a2010182daa49f9f3bb63e8993908f8cdbca8b5e Mon Sep 17 00:00:00 2001 From: Sami Kortelainen Date: Tue, 4 May 2021 07:41:45 +0300 Subject: normal: Fix incorrect return code in normal_enter_recovery() --- src/normal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.1-32-gdbae