mirror of
https://github.com/RPCS3/libusb.git
synced 2026-07-21 00:16:04 -04:00
openbsd: Fix usbi_sanitize_device error handling
If usbi_sanitize_device fails we need to continue from the beginning of the loop, rather then going on with the device we've just free-ed. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
@@ -215,8 +215,10 @@ obsd_get_device_list(struct libusb_context * ctx,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (usbi_sanitize_device(dev))
|
||||
if (usbi_sanitize_device(dev)) {
|
||||
libusb_unref_device(dev);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
ddd = discovered_devs_append(*discdevs, dev);
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 10830
|
||||
#define LIBUSB_NANO 10832
|
||||
|
||||
Reference in New Issue
Block a user