OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22cf3b7
)
attrib: Fix PDU length check for Read by Group Type Request
author
Anderson Lizardo
<anderson.lizardo@openbossa.org>
Sat, 11 Jan 2014 04:47:21 +0000
(
00:47
-0400)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Sat, 11 Jan 2014 16:56:03 +0000
(18:56 +0200)
PDU length must be either 7 or 21 octets.
attrib/att.c
patch
|
blob
|
history
diff --git
a/attrib/att.c
b/attrib/att.c
index
a8f641a
..
472c25c
100644
(file)
--- a/
attrib/att.c
+++ b/
attrib/att.c
@@
-161,7
+161,7
@@
uint16_t dec_read_by_grp_req(const uint8_t *pdu, size_t len, uint16_t *start,
if (pdu[0] != ATT_OP_READ_BY_GROUP_REQ)
return 0;
- if (len
< min_len + 2
)
+ if (len
!= (min_len + 2) && len != (min_len + 16)
)
return 0;
*start = att_get_u16(&pdu[1]);