summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lockdown.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/lockdown.c b/src/lockdown.c
index 15b3d69..327d9e5 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -630,7 +630,12 @@ lockdownd_error_t lockdownd_client_new(idevice_t device, lockdownd_client_t *cli
630 client_loc->parent = plistclient; 630 client_loc->parent = plistclient;
631 client_loc->ssl_enabled = 0; 631 client_loc->ssl_enabled = 0;
632 client_loc->session_id = NULL; 632 client_loc->session_id = NULL;
633 client_loc->uuid = NULL; 633
634 if (idevice_get_uuid(device, &client_loc->uuid) != IDEVICE_E_SUCCESS) {
635 debug_info("failed to get device uuid.");
636 }
637 debug_info("device uuid: %s", client_loc->uuid);
638
634 client_loc->label = label ? strdup(label) : NULL; 639 client_loc->label = label ? strdup(label) : NULL;
635 640
636 *client = client_loc; 641 *client = client_loc;
@@ -683,12 +688,6 @@ lockdownd_error_t lockdownd_client_new_with_handshake(idevice_t device, lockdown
683 free(type); 688 free(type);
684 } 689 }
685 690
686 ret = idevice_get_uuid(device, &client_loc->uuid);
687 if (LOCKDOWN_E_SUCCESS != ret) {
688 debug_info("failed to get device uuid.");
689 }
690 debug_info("device uuid: %s", client_loc->uuid);
691
692 userpref_get_host_id(&host_id); 691 userpref_get_host_id(&host_id);
693 if (LOCKDOWN_E_SUCCESS == ret && !host_id) { 692 if (LOCKDOWN_E_SUCCESS == ret && !host_id) {
694 ret = LOCKDOWN_E_INVALID_CONF; 693 ret = LOCKDOWN_E_INVALID_CONF;