summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/ideviceactivation.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/ideviceactivation.c b/tools/ideviceactivation.c
index 1df73ff..33e6be7 100644
--- a/tools/ideviceactivation.c
+++ b/tools/ideviceactivation.c
@@ -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);