diff options
author | Nikias Bassen | 2022-02-04 02:15:56 +0100 |
---|---|---|
committer | Nikias Bassen | 2022-02-04 02:15:56 +0100 |
commit | a64fcc3988f75cb4fc2388013c245e5e884bb96f (patch) | |
tree | 1b122ace4e0c658fbb80a2980a86eabc1114e0d2 /tools/idevicebackup2.c | |
parent | ac89a1fed5ad916c81bca1515b10934e3e01b057 (diff) | |
download | libimobiledevice-a64fcc3988f75cb4fc2388013c245e5e884bb96f.tar.gz libimobiledevice-a64fcc3988f75cb4fc2388013c245e5e884bb96f.tar.bz2 |
tools: Print meaningful error messages when service startup fails
Diffstat (limited to 'tools/idevicebackup2.c')
-rw-r--r-- | tools/idevicebackup2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index eff05ee..b024721 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c @@ -639,7 +639,7 @@ static void do_post_notification(idevice_t device, const char *notification) } lockdownd_error_t ldret = lockdownd_start_service(lockdown, NP_SERVICE_NAME, &service); - if (service && service->port) { + if (ldret == LOCKDOWN_E_SUCCESS) { np_client_new(device, service, &np); if (np) { np_post_notification(np, notification); |