diff options
author | Martin Szulecki | 2014-03-21 22:15:44 +0100 |
---|---|---|
committer | Martin Szulecki | 2014-03-21 22:15:44 +0100 |
commit | 6274a11918e5c327f46d02756869de9701b6c598 (patch) | |
tree | b2e4403f68491362353acc8ca409cd4741c217e9 /src | |
parent | 6b1482af7f3a795c4221f979acb8d694b6a4a680 (diff) | |
download | libimobiledevice-6274a11918e5c327f46d02756869de9701b6c598.tar.gz libimobiledevice-6274a11918e5c327f46d02756869de9701b6c598.tar.bz2 |
lockdown: Fix starting unsecure services as needed during trust dialog pairing
Diffstat (limited to 'src')
-rw-r--r-- | src/lockdown.c | 14 |
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")); |