Merge branch 'bugfix/bt_sdp_server_continuation_2.1' into 'release/v2.1'
bluedroid: Add continuation offset check to SDP server (backport to v2.1) See merge request !1324
This commit is contained in:
commit
3eeaae0573
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ static void process_service_search (tCONN_CB *p_ccb, UINT16 trans_num,
|
|||
}
|
||||
BE_STREAM_TO_UINT16 (cont_offset, p_req);
|
||||
|
||||
if (cont_offset != p_ccb->cont_offset) {
|
||||
if (cont_offset != p_ccb->cont_offset || num_rsp_handles < cont_offset) {
|
||||
sdpu_build_n_send_error (p_ccb, trans_num, SDP_INVALID_CONT_STATE,
|
||||
SDP_TEXT_BAD_CONT_INX);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue