diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lockdown.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index d0922dd..505b13e 100644 --- a/src/lockdown.c +++ b/src/lockdown.c | |||
@@ -766,12 +766,15 @@ LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_client_new_with_handshake(idevi | |||
766 | uerr = userpref_read_pair_record(client_loc->device->udid, &pair_record); | 766 | uerr = userpref_read_pair_record(client_loc->device->udid, &pair_record); |
767 | if (uerr == USERPREF_E_READ_ERROR) { | 767 | if (uerr == USERPREF_E_READ_ERROR) { |
768 | debug_info("ERROR: Failed to retrieve pair record for %s", client_loc->device->udid); | 768 | debug_info("ERROR: Failed to retrieve pair record for %s", client_loc->device->udid); |
769 | lockdownd_client_free(client_loc); | ||
769 | return LOCKDOWN_E_RECEIVE_TIMEOUT; | 770 | return LOCKDOWN_E_RECEIVE_TIMEOUT; |
770 | } else if (uerr == USERPREF_E_NOENT) { | 771 | } else if (uerr == USERPREF_E_NOENT) { |
771 | debug_info("ERROR: No pair record for %s", client_loc->device->udid); | 772 | debug_info("ERROR: No pair record for %s", client_loc->device->udid); |
773 | lockdownd_client_free(client_loc); | ||
772 | return LOCKDOWN_E_INVALID_CONF; | 774 | return LOCKDOWN_E_INVALID_CONF; |
773 | } else if (uerr != USERPREF_E_SUCCESS) { | 775 | } else if (uerr != USERPREF_E_SUCCESS) { |
774 | debug_info("ERROR: Failed to retrieve or parse pair record for %s", client_loc->device->udid); | 776 | debug_info("ERROR: Failed to retrieve or parse pair record for %s", client_loc->device->udid); |
777 | lockdownd_client_free(client_loc); | ||
775 | return LOCKDOWN_E_INVALID_CONF; | 778 | return LOCKDOWN_E_INVALID_CONF; |
776 | } | 779 | } |
777 | if (pair_record) { | 780 | if (pair_record) { |