summaryrefslogtreecommitdiffstats
path: root/libusbmuxd/libusbmuxd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libusbmuxd/libusbmuxd.c')
-rw-r--r--libusbmuxd/libusbmuxd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusbmuxd/libusbmuxd.c b/libusbmuxd/libusbmuxd.c
index 9084457..9349ef4 100644
--- a/libusbmuxd/libusbmuxd.c
+++ b/libusbmuxd/libusbmuxd.c
@@ -353,7 +353,7 @@ int usbmuxd_get_device_list(usbmuxd_device_info_t **device_list)
353 // receive device list 353 // receive device list
354 while (1) { 354 while (1) {
355 if (recv_buf_timeout(sfd, &hdr, sizeof(hdr), 0, 1000) == sizeof(hdr)) { 355 if (recv_buf_timeout(sfd, &hdr, sizeof(hdr), 0, 1000) == sizeof(hdr)) {
356 if (hdr.length != sizeof(hdr)+sizeof(dev_info)) { 356 if ((hdr.length < 48) || (hdr.length > sizeof(hdr)+sizeof(dev_info))) {
357 // invalid packet size received! 357 // invalid packet size received!
358 fprintf(stderr, 358 fprintf(stderr,
359 "%s: Invalid packet size (%d) received when expecting a device info record.\n", 359 "%s: Invalid packet size (%d) received when expecting a device info record.\n",