Message ID | 20230405231111.2636523-2-luiz.dentz@gmail.com |
---|---|
State | New |
Headers | show |
Series | [BlueZ,1/5] main.conf: Fix parsing of CSIS group | expand |
diff --git a/src/shared/ad.c b/src/shared/ad.c index 27b76dc8179b..7350aa206d1e 100644 --- a/src/shared/ad.c +++ b/src/shared/ad.c @@ -1028,6 +1028,9 @@ static bool data_match(const void *data, const void *user_data) if (d1->type != d2->type) return false; + if (!d2->len && !d2->data) + return true; + if (d1->len != d2->len) return false;
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> bt_ad_has_data attempts to match the data portion even when not set which is useful the user is only interested in actually mataching the type alone. --- src/shared/ad.c | 3 +++ 1 file changed, 3 insertions(+)