Diff between db36dfe7c94f9d6705201f892d13f153f5e4536c and 40798ee2cf490d054a5b80ff57b5f1047de0e4eb
Changed Files
| File | Additions | Deletions | Status |
| android/gatt.c | +3 | -1 | modified |
Full Patch
diff --git a/android/gatt.c b/android/gatt.c
index 9bbcc48..9d90f3a 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -3656,8 +3656,10 @@ static void read_requested_attributes(void *data, void *user_data)
resp_data->offset,
process_data->opcode,
&process_data->device->bdaddr,
- &value, &value_len))
+ &value, &value_len)) {
resp_data->length = READ_FAILED;
+ return;
+ }
/* We have value here already if no callback will be called */
if (value_len >= 0) {