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:
Christian Eggers 2022-09-23 16:55:57 +02:00 committed by Luiz Augusto von Dentz
parent 732eaa7ccf
commit abfb3a807c

View File

@ -1087,8 +1087,10 @@ static bool parse_min_interval(DBusMessageIter *iter,
if (!(g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL))
return true;
if (!iter)
if (!iter) {
client->min_interval = 0;
return false;
}
if (dbus_message_iter_get_arg_type(iter) != DBUS_TYPE_UINT32)
return false;