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

Marcel Holtmann
2009-02-28T21:46:30Z

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