mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 16:24:28 +08:00
advertising: parse_min_interval: reset min_interval if iter is NULL
Set property to its default value (as done in all other methods listed in parsers[]).
This commit is contained in:
parent
732eaa7ccf
commit
abfb3a807c
@ -1087,8 +1087,10 @@ static bool parse_min_interval(DBusMessageIter *iter,
|
|||||||
if (!(g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL))
|
if (!(g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (!iter)
|
if (!iter) {
|
||||||
|
client->min_interval = 0;
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (dbus_message_iter_get_arg_type(iter) != DBUS_TYPE_UINT32)
|
if (dbus_message_iter_get_arg_type(iter) != DBUS_TYPE_UINT32)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user