mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-11 00:44:27 +00:00
sdp_client: abort query on SDP_ErrorResponse
This commit is contained in:
parent
3e05a31cbd
commit
6315579769
@ -394,7 +394,13 @@ void sdp_client_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *p
|
|||||||
if (packet_type == L2CAP_DATA_PACKET){
|
if (packet_type == L2CAP_DATA_PACKET){
|
||||||
uint16_t responseTransactionID = big_endian_read_16(packet,1);
|
uint16_t responseTransactionID = big_endian_read_16(packet,1);
|
||||||
if (responseTransactionID != transactionID){
|
if (responseTransactionID != transactionID){
|
||||||
log_error("Missmatching transaction ID, expected %u, found %u.", transactionID, responseTransactionID);
|
log_error("Mismatching transaction ID, expected %u, found %u.", transactionID, responseTransactionID);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (packet[0] == SDP_ErrorResponse){
|
||||||
|
log_error("Received error response with code %u, disconnecting", packet[2]);
|
||||||
|
l2cap_disconnect(sdp_cid, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user