summaryrefslogtreecommitdiffstats
path: root/sk-usbhid.c
diff options
context:
space:
mode:
authorderaadt@openbsd.org <deraadt@openbsd.org>2020-05-14 00:38:41 +0200
committerDamien Miller <djm@mindrot.org>2020-05-27 02:09:19 +0200
commitd7d753e2979f2d3c904b03a08d30856cd2a6e892 (patch)
tree1fb6fb23fad3ddfdd3dd891b95670b11033ff287 /sk-usbhid.c
parentupstream: Enable credProtect extension when generating a resident (diff)
downloadopenssh-d7d753e2979f2d3c904b03a08d30856cd2a6e892.tar.xz
openssh-d7d753e2979f2d3c904b03a08d30856cd2a6e892.zip
upstream: we are still aiming for pre-C99 ...
OpenBSD-Commit-ID: a240fc9cbe60bc4e6c3d24d022eb4ab01fe1cb38
Diffstat (limited to 'sk-usbhid.c')
-rw-r--r--sk-usbhid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sk-usbhid.c b/sk-usbhid.c
index 4d64550c9..2a573caa2 100644
--- a/sk-usbhid.c
+++ b/sk-usbhid.c
@@ -454,7 +454,7 @@ check_sk_extensions(fido_dev_t *dev, const char *ext, int *ret)
{
fido_cbor_info_t *info;
char * const *ptr;
- size_t len;
+ size_t len, i;
int r;
*ret = 0;
@@ -474,7 +474,7 @@ check_sk_extensions(fido_dev_t *dev, const char *ext, int *ret)
}
ptr = fido_cbor_info_extensions_ptr(info);
len = fido_cbor_info_extensions_len(info);
- for (size_t i = 0; i < len; i++) {
+ for (i = 0; i < len; i++) {
if (!strcmp(ptr[i], ext)) {
*ret = 1;
break;