From: Marcel Holtmann <marcel@holtmann.org>
To: Frieder Buerzele <evermind@tuxfamily.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Fix segfault: If the interface name is NULL the bluetoothd daemon will crash
Date: Sat, 28 Feb 2009 22:46:30 +0100 [thread overview]
Message-ID: <1235857590.6074.40.camel@localhost.localdomain> (raw)
In-Reply-To: <1235638007-22946-2-git-send-email-evermind@tuxfamily.org>
Hi Frieder,
> diff --git a/gdbus/object.c b/gdbus/object.c
> index 0786aeb..dde654b 100644
> --- a/gdbus/object.c
> +++ b/gdbus/object.c
> @@ -224,6 +224,9 @@ static struct interface_data *find_interface(GSList *interfaces,
> {
> GSList *list;
>
> + if (NULL == name)
> + return NULL;
> +
> for (list = interfaces; list; list = list->next) {
> struct interface_data *iface = list->data;
> if (!strcmp(name, iface->name))
a similar patch has been applied to bluez, obexd and connmand. Thanks.
Regards
Marcel
next prev parent reply other threads:[~2009-02-28 21:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-26 8:46 [PATCH] Fix segfault: If the interface name is NULL the bluetoothd daemon will crash Frieder Buerzele
2009-02-26 8:46 ` Frieder Buerzele
2009-02-28 21:46 ` Marcel Holtmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-02-26 8:35 Frieder Buerzele
2009-02-26 8:35 ` Frieder Buerzele
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=1235857590.6074.40.camel@localhost.localdomain \
--to=marcel@holtmann.org \
--cc=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