Skip to content

Commit

Permalink
ideviceactivation: Bail out if drmHandshake request fails
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Apr 4, 2022
1 parent e362173 commit bd061e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/ideviceactivation.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,11 @@ int main(int argc, char *argv[])
plist_free(blob);

/* send request to server and get response */
idevice_activation_send_request(request, &response);
if (idevice_activation_send_request(request, &response) != IDEVICE_ACTIVATION_E_SUCCESS) {
fprintf(stderr, "Failed to get drmHandshake result from activation server.\n");
result = EXIT_FAILURE;
goto cleanup;
}
plist_t handshake_response = NULL;
idevice_activation_response_get_fields(response, &handshake_response);
idevice_activation_response_free(response);
Expand Down

0 comments on commit bd061e8

Please sign in to comment.