From 9a1006eebcc190a5e00aec7a568a7fbfe61bf376 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 28 Dec 2011 11:12:34 +0200 Subject: [PATCH] hciops: Fix passing correct bdaddr pointer to oob lookups --- plugins/hciops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/hciops.c b/plugins/hciops.c index 7d807c8b3..50bf25449 100644 --- a/plugins/hciops.c +++ b/plugins/hciops.c @@ -3583,7 +3583,7 @@ static int hciops_add_remote_oob_data(int index, bdaddr_t *bdaddr, ba2str(bdaddr, addr); DBG("hci%d bdaddr %s", index, addr); - match = g_slist_find_custom(dev->oob_data, &bdaddr, oob_bdaddr_cmp); + match = g_slist_find_custom(dev->oob_data, bdaddr, oob_bdaddr_cmp); if (match) { data = match->data; @@ -3608,7 +3608,7 @@ static int hciops_remove_remote_oob_data(int index, bdaddr_t *bdaddr) ba2str(bdaddr, addr); DBG("hci%d bdaddr %s", index, addr); - match = g_slist_find_custom(dev->oob_data, &bdaddr, oob_bdaddr_cmp); + match = g_slist_find_custom(dev->oob_data, bdaddr, oob_bdaddr_cmp); if (!match) return -ENOENT; -- 2.47.3