diff options
Diffstat (limited to 'src/afc.c')
-rw-r--r-- | src/afc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -123,7 +123,7 @@ afc_error_t afc_client_new_with_service_client(service_client_t service_client, */ afc_error_t afc_client_new(idevice_t device, lockdownd_service_descriptor_t service, afc_client_t * client) { - if (!device || service->port == 0) + if (!device || !service || service->port == 0) return AFC_E_INVALID_ARG; service_client_t parent = NULL; |