[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-40
From: |
Daniele Forsi |
Subject: |
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-400-gcb139e9 |
Date: |
Thu, 26 Apr 2012 12:22:10 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".
The branch, master has been updated
via cb139e95181cae1883b25eda5fa6b34837bdf549 (commit)
from f49db03c0f82b7f9a1e38983e5ad301f10d32542 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=cb139e95181cae1883b25eda5fa6b34837bdf549
commit cb139e95181cae1883b25eda5fa6b34837bdf549
Author: Daniele Forsi <address@hidden>
Date: Thu Apr 26 14:13:26 2012 +0200
dku2libusb: handle usb_open() failure
Failure to do so might cause a segfault with some libusb and/or
libusb-compat versions.
See:
http://lists.gnu.org/archive/html/gnokii-users/2012-04/msg00004.html
diff --git a/common/devices/dku2libusb.c b/common/devices/dku2libusb.c
index 6441e1f..16fa22d 100644
--- a/common/devices/dku2libusb.c
+++ b/common/devices/dku2libusb.c
@@ -286,6 +286,8 @@ static int usbfbus_find_interfaces(struct gn_statemachine
*state)
DEVINSTANCE(state)->interface = current;
usb_handle = usb_open(current->device);
+ if (usb_handle == NULL)
+ goto cleanup_list;
get_iface_string(usb_handle, &DEVINSTANCE(state)->manufacturer,
current->device->descriptor.iManufacturer);
get_iface_string(usb_handle, &DEVINSTANCE(state)->product,
-----------------------------------------------------------------------
Summary of changes:
common/devices/dku2libusb.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
hooks/post-receive
--
libgnokii and core programs
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-400-gcb139e9,
Daniele Forsi <=