summaryrefslogtreecommitdiff
path: root/sk-usbhid.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2020-01-06 02:39:30 +0000
committerDamien Miller <djm@mindrot.org>2020-01-06 13:40:28 +1100
commit3cc60c899a92a469e5118310ba6b74cb57215618 (patch)
treef7696211c938e11f96a16abef057ca4b1f28ead5 /sk-usbhid.c
parentff5784e2698d6c41e9f39ce4df24968c1beeb2bb (diff)
upstream: missing else in check_enroll_options()
OpenBSD-Commit-ID: e058fb918fda56ddbbf0bee910101004cec421d4
Diffstat (limited to 'sk-usbhid.c')
-rw-r--r--sk-usbhid.c2
1 files changed, 1 insertions, 1 deletions
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,
465 return -1; 465 return -1;
466 } 466 }
467 skdebug(__func__, "requested device %s", *devicep); 467 skdebug(__func__, "requested device %s", *devicep);
468 } if (strcmp(options[i]->name, "user") == 0) { 468 } else if (strcmp(options[i]->name, "user") == 0) {
469 if (strlcpy(user_id, options[i]->value, user_id_len) >= 469 if (strlcpy(user_id, options[i]->value, user_id_len) >=
470 user_id_len) { 470 user_id_len) {
471 skdebug(__func__, "user too long"); 471 skdebug(__func__, "user too long");