Parent: 1e9ce5ed80f1f7c2fc80b14ba72e667403e9c88f
Author: Bernie Conrad <bernie@allthenticate.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2021-09-30 01:43:15
Tree: 6f51ef89133e923bc3c6702604cadbe2f17c2bc7
gatt: Fix not cleaning up when disconnected There is a current use after free possible on a gatt server if a client disconnects while a WriteValue call is being processed with dbus. This patch includes the addition of a pending disconnect callback to handle cleanup better if a disconnect occurs during a write, an acquire write or read operation using bt_att_register_disconnect with the cb.
Diffstat
| M | src/gatt-database.c | | | 128 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
1 files changed, 74 insertions(+), 54 deletions(-)