diff options
| author | 2008-08-19 23:58:20 +0200 | |
|---|---|---|
| committer | 2008-08-31 19:27:20 +0200 | |
| commit | ad65cefa1c041bbd4792e3dc4f4afc7b07026930 (patch) | |
| tree | 76c73d5372cc7152ec20fb809b6da71f3dd896df /src/lockdown.c | |
| parent | 21d5d4ac4b4bd419e0d8752147464984497c98ec (diff) | |
| download | libimobiledevice-ad65cefa1c041bbd4792e3dc4f4afc7b07026930.tar.gz libimobiledevice-ad65cefa1c041bbd4792e3dc4f4afc7b07026930.tar.bz2 | |
migrate usbmux.c.
Diffstat (limited to 'src/lockdown.c')
| -rw-r--r-- | src/lockdown.c | 6 |
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() { | |||
| 77 | iphone_lckd_client_t new_lockdownd_client(iphone_device_t phone) { | 77 | iphone_lckd_client_t new_lockdownd_client(iphone_device_t phone) { |
| 78 | if (!phone) return NULL; | 78 | if (!phone) return NULL; |
| 79 | iphone_lckd_client_t control = (iphone_lckd_client_t)malloc(sizeof(struct iphone_lckd_client_int)); | 79 | iphone_lckd_client_t control = (iphone_lckd_client_t)malloc(sizeof(struct iphone_lckd_client_int)); |
| 80 | control->connection = mux_connect(phone, 0x0a00, 0xf27e); | 80 | |
| 81 | if (!control->connection) { | 81 | if (IPHONE_E_SUCCESS != iphone_mux_new_client ( phone, 0x0a00, 0xf27e, &control->connection)) { |
| 82 | free(control); | 82 | free(control); |
| 83 | return NULL; | 83 | return NULL; |
| 84 | } | 84 | } |
| @@ -100,7 +100,7 @@ void iphone_lckd_free_client( iphone_lckd_client_t client ) { | |||
| 100 | mux_close_connection(client->connection); | 100 | mux_close_connection(client->connection); |
| 101 | } | 101 | } |
| 102 | 102 | ||
| 103 | if (client->ssl_session) gnutls_deinit(*control->ssl_session); | 103 | if (client->ssl_session) gnutls_deinit(*client->ssl_session); |
| 104 | free(client->ssl_session); | 104 | free(client->ssl_session); |
| 105 | free(client); | 105 | free(client); |
| 106 | } | 106 | } |
