mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-29 07:04:19 +08:00
device: Fix invalid memory read during GATT discovery
device->browse should be set to NULL before calling browse_request_free(), otherwise it points to freed memory.
This commit is contained in:
parent
d2c09255ef
commit
27c076bbc9
@ -2005,6 +2005,7 @@ int device_browse_primary(struct btd_device *device, DBusConnection *conn,
|
||||
BT_IO_OPT_INVALID);
|
||||
|
||||
if (device->att_io == NULL) {
|
||||
device->browse = NULL;
|
||||
browse_request_free(req);
|
||||
g_free(attcb);
|
||||
return -EIO;
|
||||
|
Loading…
Reference in New Issue
Block a user