bluez5: handle NULL profile, don't run the filter on it

This commit is contained in:
Wim Taymans 2020-12-17 12:25:38 +01:00
parent d968ab56a5
commit 92f4831c9f

View file

@ -345,6 +345,8 @@ static int impl_enum_params(void *object, int seq,
switch (result.index) {
case 0:
param = build_profile(this, &b, id, this->profile);
if (param == NULL)
return 0;
break;
default:
return 0;