From cccde44377fc5bb5d9db51ca6b4fcb790c7d24ba Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sat, 27 Sep 2008 14:08:42 -0700 Subject: Fix potential NULL pointer dereference --- src/dbus-hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dbus-hci.c b/src/dbus-hci.c index 795df0a3..eea166e7 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -518,7 +518,7 @@ void hcid_dbus_bonding_process_complete(bdaddr_t *local, bdaddr_t *peer, bonding = adapter_get_bonding_info(adapter); - if (bacmp(&bonding->bdaddr, peer)) + if (bonding && bacmp(&bonding->bdaddr, peer)) bonding = NULL; if (status == 0) { -- cgit