diff options
author | Raymond Liu <raymond.liu@intel.com> | 2008-12-24 07:15:50 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-12-24 07:15:50 +0100 |
commit | 21f3750cf534b1326f9d1357b8713d881437907a (patch) | |
tree | 40f6d524ae723be717d71329db2fe3937f095ba6 /gdbus/object.c | |
parent | 440d5aa50c3e739927d469440395b72f739281eb (diff) |
Check if path is valid before unregistering it
Diffstat (limited to 'gdbus/object.c')
-rw-r--r-- | gdbus/object.c | 3 |
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; |