summaryrefslogtreecommitdiffstats
path: root/gdbus/object.c
diff options
context:
space:
mode:
authorRaymond Liu <raymond.liu@intel.com>2008-12-24 07:15:50 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-24 07:15:50 +0100
commit21f3750cf534b1326f9d1357b8713d881437907a (patch)
tree40f6d524ae723be717d71329db2fe3937f095ba6 /gdbus/object.c
parent440d5aa50c3e739927d469440395b72f739281eb (diff)
Check if path is valid before unregistering it
Diffstat (limited to 'gdbus/object.c')
-rw-r--r--gdbus/object.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdbus/object.c b/gdbus/object.c
index 432a8a0c..a41617d5 100644
--- a/gdbus/object.c
+++ b/gdbus/object.c
@@ -494,6 +494,9 @@ gboolean g_dbus_unregister_interface(DBusConnection *connection,
struct generic_data *data = NULL;
struct interface_data *iface;
+ if (!path)
+ return FALSE;
+
if (dbus_connection_get_object_path_data(connection, path,
(void *) &data) == FALSE)
return FALSE;