summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index d1f3c00..9bf37e0 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -1273,14 +1273,14 @@ int get_ap_nonce(struct idevicerestore_client_t* client, unsigned char** nonce,
break;
case MODE_DFU:
info("in dfu mode... ");
- if (dfu_get_nonce(client, nonce, nonce_size) < 0) {
+ if (dfu_get_ap_nonce(client, nonce, nonce_size) < 0) {
info("failed\n");
return -1;
}
break;
case MODE_RECOVERY:
info("in recovery mode... ");
- if (recovery_get_nonce(client, nonce, nonce_size) < 0) {
+ if (recovery_get_ap_nonce(client, nonce, nonce_size) < 0) {
info("failed\n");
return -1;
}