summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/object.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdbus/object.c b/gdbus/object.c
index 617ab5eda..830175385 100644
--- a/gdbus/object.c
+++ b/gdbus/object.c
@@ -1346,6 +1346,10 @@ gboolean g_dbus_register_interface(DBusConnection *connection,
{
struct generic_data *data;
+ if (!dbus_validate_path(path, NULL) ||
+ !dbus_validate_interface(name, NULL))
+ return FALSE;
+
data = object_path_ref(connection, path);
if (data == NULL)
return FALSE;