3
0
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:
James Prestwood 2025-04-16 10:33:44 -07:00 committed by Denis Kenzior
parent c3a27354ff
commit f469db8a95

View File

@ -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);