3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

client: Ignore invalid notifications

This commit is contained in:
Tim Kourt 2019-10-23 13:23:57 -07:00 committed by Denis Kenzior
parent cfa652e9ba
commit 13bb8c1afe

View File

@ -651,7 +651,9 @@ static void interfaces_added_callback(struct l_dbus_message *message,
if (dbus_message_has_error(message))
return;
l_dbus_message_get_arguments(message, "oa{sa{sv}}", &path, &object);
if (!l_dbus_message_get_arguments(message, "oa{sa{sv}}", &path,
&object))
return;
proxy_interface_create(path, &object);
}
@ -667,7 +669,8 @@ static void interfaces_removed_callback(struct l_dbus_message *message,
if (dbus_message_has_error(message))
return;
l_dbus_message_get_arguments(message, "oas", &path, &interfaces);
if (!l_dbus_message_get_arguments(message, "oas", &path, &interfaces))
return;
while (l_dbus_message_iter_next_entry(&interfaces, &interface)) {
proxy = proxy_interface_find(interface, path);