commit 13bb8c1afe5ab57c6e9ebe08d0b91dd93df9e976
parent cfa652e9baec68b7a8e59d94a9dc6c7c0c5246b1
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date: Wed, 23 Oct 2019 13:23:57 -0700
client: Ignore invalid notifications
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/client/dbus-proxy.c b/client/dbus-proxy.c
@@ -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);