From: Frieder Buerzele <evermind@tuxfamily.org>
To: linux-bluetooth@vger.kernel.org
Cc: Frieder Buerzele <evermind@tuxfamily.org>
Subject: [PATCH] Fix segfault: If the interface name is NULL the bluetoothd daemon will crash
Date: Thu, 26 Feb 2009 09:35:06 +0100 [thread overview]
Message-ID: <1235637306-15025-2-git-send-email-evermind@tuxfamily.org> (raw)
In-Reply-To: <1235637306-15025-1-git-send-email-evermind@tuxfamily.org>
---
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
next prev parent reply other threads:[~2009-02-26 8:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-26 8:35 [PATCH] Fix segfault: If the interface name is NULL the bluetoothd daemon will crash Frieder Buerzele
2009-02-26 8:35 ` Frieder Buerzele [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-02-26 8:46 Frieder Buerzele
2009-02-26 8:46 ` Frieder Buerzele
2009-02-28 21:46 ` Marcel Holtmann
2009-02-25 11:56 evermind
2009-02-25 14:13 ` Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1235637306-15025-2-git-send-email-evermind@tuxfamily.org \
--to=evermind@tuxfamily.org \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox