summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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);
}