diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2019-01-07 06:08:51 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2019-01-07 06:08:51 +0100 |
commit | 5ab3bc422a5cc1a646c168b547f2b6538b3a4ffa (patch) | |
tree | 8f5fb8c8da946849ee6ba50b88c1a1e74282876f | |
parent | scd: Add two variants to the set of ISO7816 functions. (diff) | |
download | gnupg2-5ab3bc422a5cc1a646c168b547f2b6538b3a4ffa.tar.xz gnupg2-5ab3bc422a5cc1a646c168b547f2b6538b3a4ffa.zip |
scd: Fix for USB INTERRUPT transfer.
* 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>
-rw-r--r-- | scd/ccid-driver.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c index ff82ef38b..c165f6e30 100644 --- a/scd/ccid-driver.c +++ b/scd/ccid-driver.c @@ -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; |