diff options
author | Nikias Bassen | 2014-01-15 02:59:59 +0100 |
---|---|---|
committer | Nikias Bassen | 2014-01-15 02:59:59 +0100 |
commit | 56392428a49543bab4b12431451ec04bb799c411 (patch) | |
tree | 2e2e6741f3fe18327fcbae6c8d486c35724bfdd1 | |
parent | 3a03f7fea05d426ca54ea472818c644b9177ad04 (diff) | |
download | libimobiledevice-56392428a49543bab4b12431451ec04bb799c411.tar.gz libimobiledevice-56392428a49543bab4b12431451ec04bb799c411.tar.bz2 |
lockdown: do not send Goodbye when SSL session was active
-rw-r--r-- | src/lockdown.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index a0bc2f4..536207f 100644 --- a/src/lockdown.c +++ b/src/lockdown.c @@ -269,7 +269,7 @@ lockdownd_error_t lockdownd_client_free(lockdownd_client_t client) lockdownd_stop_session(client, client->session_id); } - if (client->parent) { + if (!client->ssl_enabled) { lockdownd_goodbye(client); } @@ -1173,7 +1173,7 @@ lockdownd_error_t lockdownd_enter_recovery(lockdownd_client_t client) */ lockdownd_error_t lockdownd_goodbye(lockdownd_client_t client) { - if (!client) + if (!client || !client->parent) return LOCKDOWN_E_INVALID_ARG; lockdownd_error_t ret = LOCKDOWN_E_UNKNOWN_ERROR; |