summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-07-09 16:37:04 +0200
committerGravatar Martin Szulecki2010-07-09 16:37:04 +0200
commitf05bbae5f00c57f3d08936159212d3e20678a8d6 (patch)
treec8e6b028edd5ab86154ee5748e4df8be82bd6dbc /src
parentbfcd784574ace78f9923213e3d260302d28b54c8 (diff)
downloadidevicerestore-f05bbae5f00c57f3d08936159212d3e20678a8d6.tar.gz
idevicerestore-f05bbae5f00c57f3d08936159212d3e20678a8d6.tar.bz2
Fix crash due to not passing client handle for callback as userdata
Diffstat (limited to 'src')
-rw-r--r--src/restore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/restore.c b/src/restore.c
index 5d45296..44dc2aa 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -225,7 +225,7 @@ int restore_open_with_timeout(struct idevicerestore_client_t* client) {
}
}
- device_error = idevice_event_subscribe(&restore_device_callback, NULL);
+ device_error = idevice_event_subscribe(&restore_device_callback, client);
if (device_error != IDEVICE_E_SUCCESS) {
error("ERROR: Unable to subscribe to device events\n");
return -1;