mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-04-20 11:27:51 +02:00
station: check return when advancing iterator
Fixes: f4ec1ee509fc ("station: add Affinities DBus property")
This commit is contained in:
parent
c3a27354ff
commit
f469db8a95
@ -4836,7 +4836,8 @@ static struct l_dbus_message *station_property_set_affinities(
|
||||
return dbus_error_invalid_args(message);
|
||||
|
||||
/* Get first entry, there should be only one */
|
||||
l_dbus_message_iter_next_entry(&array, &new_path);
|
||||
if (!l_dbus_message_iter_next_entry(&array, &new_path))
|
||||
return dbus_error_invalid_args(message);
|
||||
|
||||
if (l_dbus_message_iter_next_entry(&array, &new_path))
|
||||
return dbus_error_invalid_args(message);
|
||||
|
Loading…
x
Reference in New Issue
Block a user