summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-07-17 16:09:26 +0200
committerGravatar Nikias Bassen2012-07-17 16:09:26 +0200
commit2a2444689467c81f49cf84004361ed004df79d95 (patch)
tree2194ce33e5b096b6f14d6faa9942c8114375bda5
parent9725ffd5b7c0187d437ec597f917c91fac260ebc (diff)
downloadidevicerestore-2a2444689467c81f49cf84004361ed004df79d95.tar.gz
idevicerestore-2a2444689467c81f49cf84004361ed004df79d95.tar.bz2
main: Allow mode and device checking in restore mode to actually work
-rw-r--r--src/idevicerestore.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index b990995..72a9bd1 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -823,7 +823,7 @@ int check_mode(struct idevicerestore_client_t* client) {
mode = MODE_NORMAL;
}
- else if (!client->ecid && client->udid && (restore_check_mode(client) == 0)) {
+ else if (restore_check_mode(client) == 0) {
mode = MODE_RESTORE;
}
@@ -838,11 +838,9 @@ int check_device(struct idevicerestore_client_t* client) {
switch (client->mode->index) {
case MODE_RESTORE:
- if (!client->ecid && client->udid) {
- device = restore_check_device(client);
- if (device < 0) {
- device = DEVICE_UNKNOWN;
- }
+ device = restore_check_device(client);
+ if (device < 0) {
+ device = DEVICE_UNKNOWN;
}
break;