diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-09-27 14:08:42 -0700 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-09-27 14:08:42 -0700 | 
| commit | cccde44377fc5bb5d9db51ca6b4fcb790c7d24ba (patch) | |
| tree | 63192ef8f65da0ad800c53a3448a993918bf4553 | |
| parent | ad5ecc880f25ddaf38dd598c55d6a683319f4e7d (diff) | |
Fix potential NULL pointer dereference
| -rw-r--r-- | src/dbus-hci.c | 2 | 
1 files changed, 1 insertions, 1 deletions
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) {  | 
