diff options
author | Myles Watson <mylesgw@google.com> | 2018-01-11 20:43:47 -0800 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-01-18 19:08:20 +0000 |
commit | 1313abd1761c39e8619a77964f8c42e3e72b5fee (patch) | |
tree | 1d0a58c64c2ea851182fcbfafff178fb11b27adc | |
parent | 2f2043f18463a5c963c138d24346870b1066e7a6 (diff) | |
download | bt-1313abd1761c39e8619a77964f8c42e3e72b5fee.tar.gz |
SDP: Include the offset in sdp_disc_server_rsp
The commit
SDP: Pass the bounds to process_service_*_rsp
with the change ID
Icf53d4d05f99b5e0a2b3f4d3735b6fbfd62adaa3
omitted the offset when calculating the end of the message.
Bug: 68161546
Test: Connect a headset
Change-Id: I6266b51e3871ed6ce9932161e4ab66de90af4ce6
(cherry picked from commit 1ff9151b7de9cff6aab3919d151542e7244cc0e5)
Merged-In: I6266b51e3871ed6ce9932161e4ab66de90af4ce6
(cherry picked from commit c379fc0f7a158e7028771bcf9dea19987f771a8e)
-rw-r--r-- | stack/sdp/sdp_discovery.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stack/sdp/sdp_discovery.cc b/stack/sdp/sdp_discovery.cc index 574f5bc56..7eea5fda3 100644 --- a/stack/sdp/sdp_discovery.cc +++ b/stack/sdp/sdp_discovery.cc @@ -225,7 +225,7 @@ void sdp_disc_server_rsp(tCONN_CB* p_ccb, BT_HDR* p_msg) { /* Got a reply!! Check what we got back */ p = (uint8_t*)(p_msg + 1) + p_msg->offset; - uint8_t* p_end = (uint8_t*)(p_msg + 1) + p_msg->len; + uint8_t* p_end = p + p_msg->len; BE_STREAM_TO_UINT8(rsp_pdu, p); |