diff options
-rw-r--r-- | src/lockdown.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index 2492897..1a162ed 100644 --- a/src/lockdown.c +++ b/src/lockdown.c @@ -726,7 +726,7 @@ LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_client_new_with_handshake(idevi if (pair_record) { pair_record_get_host_id(pair_record, &host_id); } - if (LOCKDOWN_E_SUCCESS == ret && !host_id) { + if (LOCKDOWN_E_SUCCESS == ret && pair_record && !host_id) { ret = LOCKDOWN_E_INVALID_CONF; } |