aboutsummaryrefslogtreecommitdiff
path: root/libraries/libu2f-host/patches/0007-devs-init_device-Fix-misleading-comment-logical-inve.patch
blob: 060b405907e284537fdf5958b091d4e663627a60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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