summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-03-21 22:15:44 +0100
committerGravatar Martin Szulecki2014-03-21 22:15:44 +0100
commit6274a11918e5c327f46d02756869de9701b6c598 (patch)
treeb2e4403f68491362353acc8ca409cd4741c217e9
parent6b1482af7f3a795c4221f979acb8d694b6a4a680 (diff)
downloadlibimobiledevice-6274a11918e5c327f46d02756869de9701b6c598.tar.gz
libimobiledevice-6274a11918e5c327f46d02756869de9701b6c598.tar.bz2
lockdown: Fix starting unsecure services as needed during trust dialog pairing
-rw-r--r--src/lockdown.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/lockdown.c b/src/lockdown.c
index 984f1e0..bf962c0 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -1358,24 +1358,10 @@ lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char
(*service)->ssl_enabled = 0;
}
- plist_t pair_record = NULL;
- userpref_read_pair_record(client->udid, &pair_record);
-
- char *host_id = NULL;
- pair_record_get_host_id(pair_record, &host_id);
-
- plist_free(pair_record);
-
- if (!host_id)
- return LOCKDOWN_E_INVALID_CONF;
-
plist_t dict = NULL;
uint16_t port_loc = 0;
lockdownd_error_t ret = LOCKDOWN_E_UNKNOWN_ERROR;
- free(host_id);
- host_id = NULL;
-
dict = plist_new_dict();
plist_dict_add_label(dict, client->label);
plist_dict_set_item(dict,"Request", plist_new_string("StartService"));