diff options
| author | 2022-03-01 09:08:13 +0800 | |
|---|---|---|
| committer | 2022-03-01 02:38:05 +0100 | |
| commit | 40b7451502fcad7041521346d701f77c9dc2deaf (patch) | |
| tree | 9426c408028efa20e5d28b6345bb0c3249a0cf20 | |
| parent | 5b8c9a825d4a577e87e1137cd83257d75892a51a (diff) | |
| download | libimobiledevice-40b7451502fcad7041521346d701f77c9dc2deaf.tar.gz libimobiledevice-40b7451502fcad7041521346d701f77c9dc2deaf.tar.bz2 | |
diagnostics_relay: Check for errors after sending requests to service connection
| -rw-r--r-- | src/diagnostics_relay.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/diagnostics_relay.c b/src/diagnostics_relay.c index b6cf4d9..5444fcc 100644 --- a/src/diagnostics_relay.c +++ b/src/diagnostics_relay.c | |||
| @@ -299,6 +299,9 @@ LIBIMOBILEDEVICE_API diagnostics_relay_error_t diagnostics_relay_request_diagnos | |||
| 299 | ret = diagnostics_relay_send(client, dict); | 299 | ret = diagnostics_relay_send(client, dict); |
| 300 | plist_free(dict); | 300 | plist_free(dict); |
| 301 | dict = NULL; | 301 | dict = NULL; |
| 302 | if (ret != DIAGNOSTICS_RELAY_E_SUCCESS) { | ||
| 303 | return ret; | ||
| 304 | } | ||
| 302 | 305 | ||
| 303 | ret = diagnostics_relay_receive(client, &dict); | 306 | ret = diagnostics_relay_receive(client, &dict); |
| 304 | if (!dict) { | 307 | if (!dict) { |
| @@ -341,6 +344,9 @@ LIBIMOBILEDEVICE_API diagnostics_relay_error_t diagnostics_relay_query_mobileges | |||
| 341 | ret = diagnostics_relay_send(client, dict); | 344 | ret = diagnostics_relay_send(client, dict); |
| 342 | plist_free(dict); | 345 | plist_free(dict); |
| 343 | dict = NULL; | 346 | dict = NULL; |
| 347 | if (ret != DIAGNOSTICS_RELAY_E_SUCCESS) { | ||
| 348 | return ret; | ||
| 349 | } | ||
| 344 | 350 | ||
| 345 | ret = diagnostics_relay_receive(client, &dict); | 351 | ret = diagnostics_relay_receive(client, &dict); |
| 346 | if (!dict) { | 352 | if (!dict) { |
| @@ -386,6 +392,9 @@ LIBIMOBILEDEVICE_API diagnostics_relay_error_t diagnostics_relay_query_ioregistr | |||
| 386 | ret = diagnostics_relay_send(client, dict); | 392 | ret = diagnostics_relay_send(client, dict); |
| 387 | plist_free(dict); | 393 | plist_free(dict); |
| 388 | dict = NULL; | 394 | dict = NULL; |
| 395 | if (ret != DIAGNOSTICS_RELAY_E_SUCCESS) { | ||
| 396 | return ret; | ||
| 397 | } | ||
| 389 | 398 | ||
| 390 | ret = diagnostics_relay_receive(client, &dict); | 399 | ret = diagnostics_relay_receive(client, &dict); |
| 391 | if (!dict) { | 400 | if (!dict) { |
