diff options
Diffstat (limited to 'src/dbus-hci.c')
-rw-r--r-- | src/dbus-hci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c index 4ba5e129..2ae307e8 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -1101,6 +1101,10 @@ void hcid_dbus_link_key_notify(bdaddr_t *local, bdaddr_t *peer) ba2str(peer, peer_addr); device = adapter_find_device(adapter, peer_addr); + if (!device) { + error("link_key_notify: device %s was removed!", peer_addr); + return; + } bonding = adapter_get_bonding_info(adapter); |