Thread (2 messages) 2 messages, 1 author, 2009-02-26

[PATCH] Fix segfault: If the interface name is NULL the bluetoothd daemon will crash

flat view
DORMANTno replies

From: Frieder Buerzele <hidden>
Date: 2009-02-26 08:35:06
Subsystem: the rest · Maintainer: Linus Torvalds

---
 gdbus/object.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gdbus/object.c b/gdbus/object.c
index 0786aeb..7bc9860 100644
--- a/gdbus/object.c
+++ b/gdbus/object.c
@@ -222,6 +222,9 @@ static void generic_unregister(DBusConnection *connection, void *user_data)
 static struct interface_data *find_interface(GSList *interfaces,
 						const char *name)
 {
+	if (NULL == name)
+		return NULL;
+
 	GSList *list;
 
 	for (list = interfaces; list; list = list->next) {
-- 
1.5.6.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help