summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-24 07:16:37 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-24 07:16:37 +0100
commitc6bc71abc37951b523e8f5917737bee6f5ca1f9c (patch)
tree5b7bc738ef5c874b72cf4735f5b38185af8b3e9a /gdbus
parent32432074e42578a5acd4e47be993b81915d70581 (diff)
downloadconnman-c6bc71abc37951b523e8f5917737bee6f5ca1f9c.tar.gz
connman-c6bc71abc37951b523e8f5917737bee6f5ca1f9c.tar.bz2
connman-c6bc71abc37951b523e8f5917737bee6f5ca1f9c.zip
Check if path is valid before unregistering it
Diffstat (limited to 'gdbus')
-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;