upstream: missing else in check_enroll_options()

OpenBSD-Commit-ID: e058fb918fda56ddbbf0bee910101004cec421d4
This commit is contained in:
djm@openbsd.org 2020-01-06 02:39:30 +00:00 committed by Damien Miller
parent ff5784e269
commit 3cc60c899a

View File

@ -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");