summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2013-06-25 21:44:17 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2013-06-25 21:44:17 +0300
commit550dab5ce251ca54e81a9541b03be56a10c8744d (patch)
tree88b5119457624df91d1e1bf9dcd532760620a10b /lib
parent8dbf8864845e2d0bae4b487cdcb711e8d5bbda83 (diff)
Revert "lib: Add range check for SDP_SVC_ATTR_RSP/SDP_SVC_SEARCH_ATTR_RSP"
This reverts commit 1796f00e846561af80679efba4d7c36c78710fb6. This patch causes a regression with the Nokia BH217 headset. A correct patch must take into account fragmented responses.
Diffstat (limited to 'lib')
-rw-r--r--lib/sdp.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/sdp.c b/lib/sdp.c
index 800b37af6..d8bfc51e4 100644
--- a/lib/sdp.c
+++ b/lib/sdp.c
@@ -4243,14 +4243,6 @@ int sdp_process(sdp_session_t *session)
rsp_count = bt_get_be16(pdata);
SDPDBG("Attrlist byte count : %d", rsp_count);
- /* Valid range for rsp_count is 0x0002-0xFFFF */
- if (rsp_count < 0x0002) {
- t->err = EPROTO;
- SDPERR("Protocol error: invalid AttrList size");
- status = SDP_INVALID_PDU_SIZE;
- goto end;
- }
-
/*
* Number of bytes in the AttributeLists parameter(without
* continuation state) + AttributeListsByteCount field size.