summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-08-18 05:36:32 +0200
committerGravatar Martin Szulecki2013-09-17 11:43:33 +0200
commita157593ff7159a459975537f8885adcd5902ab1b (patch)
tree8ae7e92ef31e3f7b75a857b4bab9740527ec26e1 /src
parentec720cc1c30ac3f9b7996575e835565f60ce2b3e (diff)
downloadlibimobiledevice-a157593ff7159a459975537f8885adcd5902ab1b.tar.gz
libimobiledevice-a157593ff7159a459975537f8885adcd5902ab1b.tar.bz2
lockdown: Allow starting services without the need for a running SSL session
Diffstat (limited to 'src')
-rw-r--r--src/lockdown.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lockdown.c b/src/lockdown.c
index 7c516c1..f846be3 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -1689,8 +1689,6 @@ lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char
userpref_device_record_get_host_id(client->udid, &host_id);
if (!host_id)
return LOCKDOWN_E_INVALID_CONF;
- if (!client->session_id)
- return LOCKDOWN_E_NO_RUNNING_SESSION;
plist_t dict = NULL;
uint16_t port_loc = 0;
@@ -1757,6 +1755,8 @@ lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char
plist_get_string_val(error_node, &error);
if (!strcmp(error, "InvalidService")) {
ret = LOCKDOWN_E_INVALID_SERVICE;
+ } else if (!strcmp(error, "NoRunningSession")) {
+ ret = LOCKDOWN_E_NO_RUNNING_SESSION;
}
free(error);
}