1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-03 12:11:33 +01:00

scd: Internal CCID driver: Fix a failure path.

* scd/ccid-driver.c (ccid_open_usb_reader): On error, call
libusb_release_interface.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2020-09-28 15:55:44 +09:00
parent b1e8072320
commit d561c936a2

View File

@ -1727,6 +1727,7 @@ ccid_open_usb_reader (const char *spec_reader_name,
{ {
--ccid_usb_thread_is_alive; --ccid_usb_thread_is_alive;
free (rid); free (rid);
libusb_release_interface (idev, ifc_no);
libusb_close (idev); libusb_close (idev);
free (*handle); free (*handle);
*handle = NULL; *handle = NULL;