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 <hdego...@redhat.com> --- libusb/os/openbsd_usb.c | 4 +++- libusb/version_nano.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libusb/os/openbsd_usb.c b/libusb/os/openbsd_usb.c index 2997e53..84c339e 100644 --- a/libusb/os/openbsd_usb.c +++ b/libusb/os/openbsd_usb.c @@ -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); diff --git a/libusb/version_nano.h b/libusb/version_nano.h index dfa5664..1aa4bd5 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10830 +#define LIBUSB_NANO 10832 -- 1.8.3.1 ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel