summaryrefslogtreecommitdiffstats
path: root/tools/idevicebackup2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/idevicebackup2.c')
-rw-r--r--tools/idevicebackup2.c2
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)
639 } 639 }
640 640
641 lockdownd_error_t ldret = lockdownd_start_service(lockdown, NP_SERVICE_NAME, &service); 641 lockdownd_error_t ldret = lockdownd_start_service(lockdown, NP_SERVICE_NAME, &service);
642 if (service && service->port) { 642 if (ldret == LOCKDOWN_E_SUCCESS) {
643 np_client_new(device, service, &np); 643 np_client_new(device, service, &np);
644 if (np) { 644 if (np) {
645 np_post_notification(np, notification); 645 np_post_notification(np, notification);