summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorGravatar Hector Martin2009-10-31 19:14:36 +0100
committerGravatar Hector Martin2009-10-31 19:14:36 +0100
commitcf9f537aaf5ec2ff7d3749647c6501fbbdf51540 (patch)
treefbb1795967c5a6cc5bba0c3e602c8d2f92f9be6d /daemon
parentba69ddd479c02a0e41b0f0447e9b3b9a09de6701 (diff)
downloadusbmuxd-cf9f537aaf5ec2ff7d3749647c6501fbbdf51540.tar.gz
usbmuxd-cf9f537aaf5ec2ff7d3749647c6501fbbdf51540.tar.bz2
Fix USB pid range check: was trying to claim all Apple devices
Diffstat (limited to 'daemon')
-rw-r--r--daemon/usb-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/usb-linux.c b/daemon/usb-linux.c
index 4a5711d..687e965 100644
--- a/daemon/usb-linux.c
+++ b/daemon/usb-linux.c
@@ -270,7 +270,7 @@ int usb_discover(void)
}
if(devdesc.idVendor != VID_APPLE)
continue;
- if((devdesc.idProduct < PID_RANGE_LOW) &&
+ if((devdesc.idProduct < PID_RANGE_LOW) ||
(devdesc.idProduct > PID_RANGE_MAX))
continue;
libusb_device_handle *handle;