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

1 comment on commit bd061e8

@gsmstudy
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dear sir.can we business? $50000 $100000
please help me .and i will make $$$ for you and for me too..
s i m o n f r e n k 4 5 @ g ma il . c o m

Please sign in to comment.