summaryrefslogtreecommitdiffstats
path: root/src/lockdown.c
diff options
context:
space:
mode:
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() {
77iphone_lckd_client_t new_lockdownd_client(iphone_device_t phone) { 77iphone_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}