summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-02-28 22:42:10 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-02-28 22:44:38 +0100
commitc059f209d8bcffc3432ac67ea9217820de799e21 (patch)
tree1282fceccaa346eaa5ba1b4fcf47f3952931d507
parent5e1faea29b80b0278efe1056b598a835f8e23146 (diff)
downloadconnman-c059f209d8bcffc3432ac67ea9217820de799e21.tar.gz
connman-c059f209d8bcffc3432ac67ea9217820de799e21.tar.bz2
connman-c059f209d8bcffc3432ac67ea9217820de799e21.zip
Check that interface name is provided
-rw-r--r--gdbus/object.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdbus/object.c b/gdbus/object.c
index 0786aebe..2823054b 100644
--- a/gdbus/object.c
+++ b/gdbus/object.c
@@ -224,6 +224,9 @@ static struct interface_data *find_interface(GSList *interfaces,
{
GSList *list;
+ if (!name)
+ return NULL;
+
for (list = interfaces; list; list = list->next) {
struct interface_data *iface = list->data;
if (!strcmp(name, iface->name))
@@ -391,7 +394,6 @@ static gboolean check_signal(DBusConnection *conn, const char *path,
}
iface = find_interface(data->interfaces, interface);
-
if (!iface) {
error("dbus_connection_emit_signal: %s does not implement %s",
path, interface);