summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar 怯花颜2022-03-01 09:08:13 +0800
committerGravatar Nikias Bassen2022-03-01 02:38:05 +0100
commit40b7451502fcad7041521346d701f77c9dc2deaf (patch)
tree9426c408028efa20e5d28b6345bb0c3249a0cf20 /src
parent5b8c9a825d4a577e87e1137cd83257d75892a51a (diff)
downloadlibimobiledevice-40b7451502fcad7041521346d701f77c9dc2deaf.tar.gz
libimobiledevice-40b7451502fcad7041521346d701f77c9dc2deaf.tar.bz2
diagnostics_relay: Check for errors after sending requests to service connection
Diffstat (limited to 'src')
-rw-r--r--src/diagnostics_relay.c9
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
ret = diagnostics_relay_send(client, dict);
plist_free(dict);
dict = NULL;
+ if (ret != DIAGNOSTICS_RELAY_E_SUCCESS) {
+ return ret;
+ }
ret = diagnostics_relay_receive(client, &dict);
if (!dict) {
@@ -341,6 +344,9 @@ LIBIMOBILEDEVICE_API diagnostics_relay_error_t diagnostics_relay_query_mobileges
ret = diagnostics_relay_send(client, dict);
plist_free(dict);
dict = NULL;
+ if (ret != DIAGNOSTICS_RELAY_E_SUCCESS) {
+ return ret;
+ }
ret = diagnostics_relay_receive(client, &dict);
if (!dict) {
@@ -386,6 +392,9 @@ LIBIMOBILEDEVICE_API diagnostics_relay_error_t diagnostics_relay_query_ioregistr
ret = diagnostics_relay_send(client, dict);
plist_free(dict);
dict = NULL;
+ if (ret != DIAGNOSTICS_RELAY_E_SUCCESS) {
+ return ret;
+ }
ret = diagnostics_relay_receive(client, &dict);
if (!dict) {