aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruna Moreira <bruna.moreira@openbossa.org>2011-02-21 10:36:54 -0400
committerJohan Hedberg <johan.hedberg@nokia.com>2011-02-21 13:55:45 -0300
commit0ae4ae514215d2ba7c4b7cd43465a5f53d08c2af (patch)
tree3b6ae52f0146c1ff1c2380a6b579861b806c9523 /src
parentad8d1d551f4ca24fcf09afe7f9cff862ee625920 (diff)
downloadbluez-0ae4ae514215d2ba7c4b7cd43465a5f53d08c2af.tar.gz
Fix end grp handle on Find By Type response
The attribute server was incorrectly setting the end group handle of the last attribute to 0xFFFF on Find By Type response (used by Discover Primary Service by UUID).
Diffstat (limited to 'src')
-rw-r--r--src/attrib-server.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/attrib-server.c b/src/attrib-server.c
index 2eb800fd..7ec0f56d 100644
--- a/src/attrib-server.c
+++ b/src/attrib-server.c
@@ -486,13 +486,6 @@ static int find_by_type(uint16_t start, uint16_t end, uuid_t *uuid,
}
}
- if (range) {
- if (l == NULL) {
- /* Avoids another iteration */
- range->end = 0xFFFF;
- }
- }
-
if (matches == NULL)
return enc_error_resp(ATT_OP_FIND_BY_TYPE_REQ, start,
ATT_ECODE_ATTR_NOT_FOUND, opdu, mtu);