From 21f3750cf534b1326f9d1357b8713d881437907a Mon Sep 17 00:00:00 2001 From: Raymond Liu Date: Wed, 24 Dec 2008 07:15:50 +0100 Subject: Check if path is valid before unregistering it --- gdbus/object.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdbus') 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; -- cgit