scd: Fix for USB INTERRUPT transfer.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 7 Jan 2019 05:08:51 +0000 (14:08 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 7 Jan 2019 05:08:51 +0000 (14:08 +0900)
* scd/ccid-driver.c (intr_cb): When LIBUSB_TRANSFER_NO_DEVICE,
just handle this event as failure.

--

It used to try another interrupt transfer request to make sure
if it fails again.

GnuPG-bug-id: 4308
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/ccid-driver.c

index ff82ef3..c165f6e 100644 (file)
@@ -1470,8 +1470,7 @@ intr_cb (struct libusb_transfer *transfer)
 
   DEBUGOUT_1 ("CCID: interrupt callback %d\n", transfer->status);
 
-  if (transfer->status == LIBUSB_TRANSFER_TIMED_OUT
-      || transfer->status == LIBUSB_TRANSFER_NO_DEVICE)
+  if (transfer->status == LIBUSB_TRANSFER_TIMED_OUT)
     {
       int err;