Diff between 6dd672739d744c275bbd5daa5954293203963cb6 and d07b73511740d59e0fba68cc87ad9bc61ca283ad
Changed Files
| File | Additions | Deletions | Status |
| attrib/gatt.c | +3 | -3 | modified |
Full Patch
diff --git a/attrib/gatt.c b/attrib/gatt.c
index 963fa20..b834b13 100644
--- a/attrib/gatt.c
+++ b/attrib/gatt.c
@@ -475,15 +475,15 @@ static void char_discovered_cb(guint8 status, const guint8 *ipdu, guint16 iplen,
} else
uuid = att_get_uuid128(&value[5]);
+ if (dc->uuid && bt_uuid_cmp(dc->uuid, &uuid))
+ break;
+
chars = g_try_new0(struct gatt_char, 1);
if (!chars) {
err = ATT_ECODE_INSUFF_RESOURCES;
goto done;
}
- if (dc->uuid && bt_uuid_cmp(dc->uuid, &uuid))
- break;
-
chars->handle = last;
chars->properties = value[2];
chars->value_handle = att_get_u16(&value[3]);