summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-01-13 00:17:22 +0100
committerGravatar Martin Szulecki2010-01-13 01:03:07 +0100
commita52e7c4f59f852101a67aff3c6ff9d9252545709 (patch)
treed48d08d0d7a3af582d78c8c3d58c6c46013b71fc /src
parentb578398a2883e1e81dbf5bdbd8b8ae917bf9e29d (diff)
downloadlibimobiledevice-a52e7c4f59f852101a67aff3c6ff9d9252545709.tar.gz
libimobiledevice-a52e7c4f59f852101a67aff3c6ff9d9252545709.tar.bz2
lockdown: Use more correct error code when SSL startup fails
Diffstat (limited to 'src')
-rw-r--r--src/lockdown.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lockdown.c b/src/lockdown.c
index 5568f03..ea161bc 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -1131,6 +1131,9 @@ lockdownd_error_t lockdownd_start_session(lockdownd_client_t client, const char
ret = property_list_service_enable_ssl(client->parent);
if (ret == PROPERTY_LIST_SERVICE_E_SUCCESS) {
client->ssl_enabled = 1;
+ } else {
+ ret = LOCKDOWN_E_SSL_ERROR;
+ client->ssl_enabled = 0;
}
} else {
client->ssl_enabled = 0;