scd:ccid: Call libusb_clear_halt in ccid_vendor_specific_setup.

* scd/ccid-driver.c (ccid_vendor_specific_setup): Only for SPR532,
call libusb_clear_halt.

--

GnuPG-bug-id: 5167
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2020-12-09 12:52:08 +09:00
parent ffabc29d5e
commit f503730272
1 changed files with 1 additions and 0 deletions

View File

@ -1295,6 +1295,7 @@ ccid_vendor_specific_setup (ccid_driver_t handle)
DEBUGOUT ("sending escape sequence to switch to a case 1 APDU\n");
send_escape_cmd (handle, (const unsigned char*)"\x80\x02\x00", 3,
NULL, 0, NULL);
libusb_clear_halt (handle->idev, handle->ep_intr);
}
return 0;
}