summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-01-18 17:18:09 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-01-18 17:18:09 +0000
commita06c54e109afc71dfcac689448e7f8320710493b (patch)
tree473f75db7b15d3e2bffc53b02a39ddb3fae3ca9d
parent35d6f66a0155b7d16907a19d97a1a8185bfb6aed (diff)
This size check was obviously commented out because of the incorrect
size computed for reports with reportID. Tested by Benjamin Baier.
-rw-r--r--usr.bin/usbhidaction/usbhidaction.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/usbhidaction/usbhidaction.c b/usr.bin/usbhidaction/usbhidaction.c
index aed6e14d238..53b5c54f71e 100644
--- a/usr.bin/usbhidaction/usbhidaction.c
+++ b/usr.bin/usbhidaction/usbhidaction.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbhidaction.c,v 1.18 2014/08/15 03:51:40 guenther Exp $ */
+/* $OpenBSD: usbhidaction.c,v 1.19 2015/01/18 17:18:08 mpi Exp $ */
/* $NetBSD: usbhidaction.c,v 1.7 2002/01/18 14:38:59 augustss Exp $ */
/*
@@ -180,11 +180,9 @@ main(int argc, char **argv)
else
exit(1);
}
-#if 0
if (n != sz) {
err(2, "read size");
}
-#endif
for (cmd = commands; cmd; cmd = cmd->next) {
val = hid_get_data(buf, &cmd->item);
if (cmd->value == val || cmd->anyvalue)