diff options
-rw-r--r-- | src/lockdown.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index 49a42e5..83fced2 100644 --- a/src/lockdown.c +++ b/src/lockdown.c @@ -666,8 +666,11 @@ lockdownd_error_t lockdownd_client_new_with_handshake(idevice_t device, lockdown char *host_id = NULL; char *type = NULL; - ret = lockdownd_client_new(device, &client_loc, label); + if (LOCKDOWN_E_SUCCESS != ret) { + debug_info("failed to create lockdownd client."); + return ret; + } /* perform handshake */ if (LOCKDOWN_E_SUCCESS != lockdownd_query_type(client_loc, &type)) { |