Bluetooth: SDP: Check SDP error when receiving PDU response
Stops handle data if server responds with SDP Error PDU Jira: ZEP-1112 Change-Id: Iaddb740f71fa86384753ab32956fc69b89faeea0 Signed-off-by: Arkadiusz Lichwa <arkadiusz.lichwa@tieto.com>
This commit is contained in:
parent
d460181eb0
commit
4de2bad817
1 changed files with 5 additions and 0 deletions
|
@ -334,6 +334,11 @@ static void sdp_client_receive(struct bt_l2cap_chan *chan, struct net_buf *buf)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (hdr->op_code == BT_SDP_ERROR_RSP) {
|
||||||
|
BT_INFO("Error SDP PDU response");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
len = sys_be16_to_cpu(hdr->param_len);
|
len = sys_be16_to_cpu(hdr->param_len);
|
||||||
tid = sys_be16_to_cpu(hdr->tid);
|
tid = sys_be16_to_cpu(hdr->tid);
|
||||||
net_buf_pull(buf, sizeof(*hdr));
|
net_buf_pull(buf, sizeof(*hdr));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue