Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libusb: fix crash in hid_enumerate() caused by a stale device handle (#…
…526) When hid_enumerate() iterates over the device list, it's possible that libusb_open() fails. If this occurs on the next round after a successful libusb_open() call, create_device_info_for_device() is passed the previous iteration's already closed device handle. Fix the crash by setting the handle to NULL after libusb_close().
- Loading branch information