diff options
author | 怯花颜 | 2022-03-01 09:08:13 +0800 |
---|---|---|
committer | Nikias Bassen | 2022-03-01 02:38:05 +0100 |
commit | 40b7451502fcad7041521346d701f77c9dc2deaf (patch) | |
tree | 9426c408028efa20e5d28b6345bb0c3249a0cf20 /src | |
parent | 5b8c9a825d4a577e87e1137cd83257d75892a51a (diff) | |
download | libimobiledevice-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.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 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) { |