summaryrefslogtreecommitdiffstats
path: root/src/lockdown.c
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-19 23:58:20 +0200
committerGravatar Jonathan Beck2008-08-31 19:27:20 +0200
commitad65cefa1c041bbd4792e3dc4f4afc7b07026930 (patch)
tree76c73d5372cc7152ec20fb809b6da71f3dd896df /src/lockdown.c
parent21d5d4ac4b4bd419e0d8752147464984497c98ec (diff)
downloadlibimobiledevice-ad65cefa1c041bbd4792e3dc4f4afc7b07026930.tar.gz
libimobiledevice-ad65cefa1c041bbd4792e3dc4f4afc7b07026930.tar.bz2
migrate usbmux.c.
Diffstat (limited to 'src/lockdown.c')
-rw-r--r--src/lockdown.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lockdown.c b/src/lockdown.c
index bc70d53..e8626bc 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -77,8 +77,8 @@ char *lockdownd_generate_hostid() {
iphone_lckd_client_t new_lockdownd_client(iphone_device_t phone) {
if (!phone) return NULL;
iphone_lckd_client_t control = (iphone_lckd_client_t)malloc(sizeof(struct iphone_lckd_client_int));
- control->connection = mux_connect(phone, 0x0a00, 0xf27e);
- if (!control->connection) {
+
+ if (IPHONE_E_SUCCESS != iphone_mux_new_client ( phone, 0x0a00, 0xf27e, &control->connection)) {
free(control);
return NULL;
}
@@ -100,7 +100,7 @@ void iphone_lckd_free_client( iphone_lckd_client_t client ) {
mux_close_connection(client->connection);
}
- if (client->ssl_session) gnutls_deinit(*control->ssl_session);
+ if (client->ssl_session) gnutls_deinit(*client->ssl_session);
free(client->ssl_session);
free(client);
}