Message ID | 20230405231111.2636523-2-luiz.dentz@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 759d1442a5dcc96466ee0758c695e83b8524ab64 |
Headers | show |
Series | [BlueZ,1/5] main.conf: Fix parsing of CSIS group | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
tedd_an/CheckPatch | success | CheckPatch PASS |
tedd_an/GitLint | success | Gitlint PASS |
tedd_an/IncrementalBuild | success | Incremental Build PASS |
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(+)