diff options
| author | 2009-10-31 19:14:36 +0100 | |
|---|---|---|
| committer | 2009-10-31 19:14:36 +0100 | |
| commit | cf9f537aaf5ec2ff7d3749647c6501fbbdf51540 (patch) | |
| tree | fbb1795967c5a6cc5bba0c3e602c8d2f92f9be6d /daemon | |
| parent | ba69ddd479c02a0e41b0f0447e9b3b9a09de6701 (diff) | |
| download | usbmuxd-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.c | 2 |
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) | |||
| 270 | } | 270 | } |
| 271 | if(devdesc.idVendor != VID_APPLE) | 271 | if(devdesc.idVendor != VID_APPLE) |
| 272 | continue; | 272 | continue; |
| 273 | if((devdesc.idProduct < PID_RANGE_LOW) && | 273 | if((devdesc.idProduct < PID_RANGE_LOW) || |
| 274 | (devdesc.idProduct > PID_RANGE_MAX)) | 274 | (devdesc.idProduct > PID_RANGE_MAX)) |
| 275 | continue; | 275 | continue; |
| 276 | libusb_device_handle *handle; | 276 | libusb_device_handle *handle; |
