From ff797556da5f896d43e4b0e16f5e1a8231b8cd1f Mon Sep 17 00:00:00 2001 From: Marcin Kraglak Date: Thu, 17 Jul 2014 10:42:44 +0200 Subject: attrib: Fix discovering descriptors Discover all attributes in given range. In same cases we ommited last attribute in range. --- attrib/gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'attrib') diff --git a/attrib/gatt.c b/attrib/gatt.c index 27fb0b3ca..f8ff2a548 100644 --- a/attrib/gatt.c +++ b/attrib/gatt.c @@ -1004,7 +1004,7 @@ static void desc_discovered_cb(guint8 status, const guint8 *ipdu, att_data_list_free(list); - if (last + 1 < dd->end && !uuid_found) { + if (last < dd->end && !uuid_found) { guint16 oplen; size_t buflen; uint8_t *buf; -- cgit v1.2.1