summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index ed984d9..e9a50dd 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -570,14 +570,12 @@ int idevicerestore_start(struct idevicerestore_client_t* client)
if (client->build_major > 8) {
unsigned char* nonce = NULL;
int nonce_size = 0;
- int nonce_changed = 0;
if (get_ap_nonce(client, &nonce, &nonce_size) < 0) {
/* the first nonce request with older firmware releases can fail and it's OK */
info("NOTE: Unable to get nonce from device\n");
}
if (!client->nonce || (nonce_size != client->nonce_size) || (memcmp(nonce, client->nonce, nonce_size) != 0)) {
- nonce_changed = 1;
if (client->nonce) {
free(client->nonce);
}