From ddf0da04e26d634eb459a6d4a0d452d34c62e83b Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 24 Apr 2013 03:37:49 +0200 Subject: limera1n: verify device mode after sending exploit to check for failure --- src/idevicerestore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/idevicerestore.c') diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 04207d3..13b7031 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -279,7 +279,7 @@ int idevicerestore_start(struct idevicerestore_client_t* client) } info("exploiting with limera1n...\n"); // TODO: check for non-limera1n device and fail - if (limera1n_exploit(client->device, client->dfu->client) != 0) { + if (limera1n_exploit(client->device, &client->dfu->client) != 0) { error("ERROR: limera1n exploit failed\n"); dfu_client_free(client); return -1; @@ -738,7 +738,7 @@ int idevicerestore_start(struct idevicerestore_client_t* client) } info("exploiting with limera1n\n"); // TODO: check for non-limera1n device and fail - if (limera1n_exploit(client->device, client->dfu->client) != 0) { + if (limera1n_exploit(client->device, &client->dfu->client) != 0) { error("ERROR: limera1n exploit failed\n"); dfu_client_free(client); if (delete_fs && filesystem) -- cgit v1.1-32-gdbae