From 3cc60c899a92a469e5118310ba6b74cb57215618 Mon Sep 17 00:00:00 2001 From: "djm@openbsd.org" Date: Mon, 6 Jan 2020 02:39:30 +0000 Subject: [PATCH] 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 21d791ba4..cf783e205 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");