summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/idevicerestore.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 2a7a96b..03845fe 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -370,16 +370,16 @@ int check_device(struct idevicerestore_client_t* client) {
int get_bdid(struct idevicerestore_client_t* client, uint32_t* bdid) {
switch (client->mode->index) {
case MODE_NORMAL:
- if (normal_get_bdid(client->uuid, &client->device->board_id) < 0) {
- client->device->board_id = -1;
+ if (normal_get_bdid(client->uuid, bdid) < 0) {
+ *bdid = 0;
return -1;
}
break;
case MODE_DFU:
case MODE_RECOVERY:
- if (recovery_get_bdid(client, &client->device->board_id) < 0) {
- client->device->board_id = -1;
+ if (recovery_get_bdid(client, bdid) < 0) {
+ *bdid = 0;
return -1;
}
break;