summaryrefslogtreecommitdiffstats
path: root/libraries/libu2f-host/patches/0007-devs-init_device-Fix-misleading-comment-logical-inve.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libu2f-host/patches/0007-devs-init_device-Fix-misleading-comment-logical-inve.patch')
-rw-r--r--libraries/libu2f-host/patches/0007-devs-init_device-Fix-misleading-comment-logical-inve.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/libraries/libu2f-host/patches/0007-devs-init_device-Fix-misleading-comment-logical-inve.patch b/libraries/libu2f-host/patches/0007-devs-init_device-Fix-misleading-comment-logical-inve.patch
new file mode 100644
index 0000000000..060b405907
--- /dev/null
+++ b/libraries/libu2f-host/patches/0007-devs-init_device-Fix-misleading-comment-logical-inve.patch
@@ -0,0 +1,27 @@
+From 3b8cf649c04e484d9162ab9325a4aa064df1f2ee Mon Sep 17 00:00:00 2001
+From: Nicolas Braud-Santoni <nicolas@braud-santoni.eu>
+Date: Fri, 30 Aug 2019 12:21:13 +0200
+Subject: [PATCH 07/25] devs/init_device: Fix misleading comment (logical
+ inversion)
+
+Signed-off-by: Gustavo B. Schenkel <gustavo.schenkel@gmail.com>
+---
+ u2f-host/devs.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/u2f-host/devs.c b/u2f-host/devs.c
+index f10048f..aa76c9f 100644
+--- a/u2f-host/devs.c
++++ b/u2f-host/devs.c
+@@ -303,7 +303,7 @@ init_device (u2fh_devs * devs, struct u2fdevice *dev)
+ &resplen) == U2FH_OK)
+ {
+ int offs = sizeof (nonce);
+- /* the response has to be at least 17 bytes, if it's more we discard that */
++ /* the response has to be at least 17 bytes, if it's less we discard it */
+ if (resplen < 17)
+ {
+ return U2FH_SIZE_ERROR;
+--
+2.32.0
+