[openssh-commits] [openssh] 01/01: upstream: missing else in check_enroll_options()

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Jan 6 13:40:35 AEDT 2020


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 3cc60c899a92a469e5118310ba6b74cb57215618
Author: djm at openbsd.org <djm at openbsd.org>
Date:   Mon Jan 6 02:39:30 2020 +0000

    upstream: missing else in check_enroll_options()
    
    OpenBSD-Commit-ID: e058fb918fda56ddbbf0bee910101004cec421d4
---
 sk-usbhid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sk-usbhid.c b/sk-usbhid.c
index 21d791ba..cf783e20 100644
--- a/sk-usbhid.c
+++ b/sk-usbhid.c
@@ -465,7 +465,7 @@ check_enroll_options(struct sk_option **options, char **devicep,
 				return -1;
 			}
 			skdebug(__func__, "requested device %s", *devicep);
-		} if (strcmp(options[i]->name, "user") == 0) {
+		} else if (strcmp(options[i]->name, "user") == 0) {
 			if (strlcpy(user_id, options[i]->value, user_id_len) >=
 			    user_id_len) {
 				skdebug(__func__, "user too long");

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list