diff options
author | Marcin Kraglak <marcin.kraglak@tieto.com> | 2014-07-17 10:42:44 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-07-18 11:14:42 +0200 |
commit | ff797556da5f896d43e4b0e16f5e1a8231b8cd1f (patch) | |
tree | 54d435468232a7a7c1f9a8fd1477d35e78e1f4e7 /attrib | |
parent | cad930f409b809d98467a69fca93d12c269c00d0 (diff) | |
download | bluez-ff797556da5f896d43e4b0e16f5e1a8231b8cd1f.tar.gz |
attrib: Fix discovering descriptors
Discover all attributes in given range. In same cases we ommited
last attribute in range.
Diffstat (limited to 'attrib')
-rw-r--r-- | attrib/gatt.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |