mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 13:20:39 +00:00
also trunkate request buffer after signed write was validated
This commit is contained in:
parent
323258aebc
commit
3602cdee65
@ -197,6 +197,7 @@ static void att_signed_write_handle_cmac_result(uint8_t hash[8]){
|
|||||||
central_device_db_counter_set(att_ir_central_device_db_index, counter_packet+1);
|
central_device_db_counter_set(att_ir_central_device_db_index, counter_packet+1);
|
||||||
// just treat signed write command as simple write command after validation
|
// just treat signed write command as simple write command after validation
|
||||||
att_request_buffer[0] = ATT_WRITE_COMMAND;
|
att_request_buffer[0] = ATT_WRITE_COMMAND;
|
||||||
|
att_request_size -= 12;
|
||||||
att_server_state = ATT_SERVER_REQUEST_RECEIVED;
|
att_server_state = ATT_SERVER_REQUEST_RECEIVED;
|
||||||
att_run();
|
att_run();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user