summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;