summaryrefslogtreecommitdiffstats
path: root/tools/idevicedebugserverproxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/idevicedebugserverproxy.c')
-rw-r--r--tools/idevicedebugserverproxy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/idevicedebugserverproxy.c b/tools/idevicedebugserverproxy.c
index baf3cd7..9ccb3c3 100644
--- a/tools/idevicedebugserverproxy.c
+++ b/tools/idevicedebugserverproxy.c
@@ -223,6 +223,7 @@ static void* connection_handler(void* data)
223int main(int argc, char *argv[]) 223int main(int argc, char *argv[])
224{ 224{
225 lockdownd_client_t lockdown = NULL; 225 lockdownd_client_t lockdown = NULL;
226 lockdownd_error_t ldret = LOCKDOWN_E_UNKNOWN_ERROR;
226 idevice_t device = NULL; 227 idevice_t device = NULL;
227 idevice_connection_t connection = NULL; 228 idevice_connection_t connection = NULL;
228 idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR; 229 idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR;
@@ -291,8 +292,8 @@ int main(int argc, char *argv[])
291 goto leave_cleanup; 292 goto leave_cleanup;
292 } 293 }
293 294
294 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(device, &lockdown, "idevicedebugserverproxy")) { 295 if (LOCKDOWN_E_SUCCESS != (ldret = lockdownd_client_new_with_handshake(device, &lockdown, "idevicedebugserverproxy"))) {
295 fprintf(stderr, "Could not connect to lockdownd. Exiting.\n"); 296 fprintf(stderr, "ERROR: Could not connect to lockdownd, error code %d\n", ldret);
296 result = EXIT_FAILURE; 297 result = EXIT_FAILURE;
297 goto leave_cleanup; 298 goto leave_cleanup;
298 } 299 }