projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a419432
)
gdbus: Check for valid path before handling properties
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 21 Jan 2013 02:25:12 +0000
(18:25 -0800)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 21 Jan 2013 02:45:56 +0000
(18:45 -0800)
gdbus/object.c
patch
|
blob
|
history
diff --git
a/gdbus/object.c
b/gdbus/object.c
index
1a54b3f
..
3327cf4
100644
(file)
--- a/
gdbus/object.c
+++ b/
gdbus/object.c
@@
-1690,6
+1690,9
@@
void g_dbus_emit_property_changed(DBusConnection *connection,
struct generic_data *data;
struct interface_data *iface;
+ if (path == NULL)
+ return;
+
if (!dbus_connection_get_object_path_data(connection, path,
(void **) &data) || data == NULL)
return;
@@
-1724,6
+1727,9
@@
gboolean g_dbus_get_properties(DBusConnection *connection, const char *path,
struct generic_data *data;
struct interface_data *iface;
+ if (path == NULL)
+ return FALSE;
+
if (!dbus_connection_get_object_path_data(connection, path,
(void **) &data) || data == NULL)
return FALSE;