diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:20:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:20:30 +0000 |
commit | 152a6f45538d3a74f25fd1edefec85107edc0f82 (patch) | |
tree | d3c96d18702e20e154eb3f36e46fefdde9a69118 /src/hid_netbsd.c | |
parent | Adding debian version 1.14.0-1. (diff) | |
download | libfido2-152a6f45538d3a74f25fd1edefec85107edc0f82.tar.xz libfido2-152a6f45538d3a74f25fd1edefec85107edc0f82.zip |
Merging upstream version 1.15.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/hid_netbsd.c')
-rw-r--r-- | src/hid_netbsd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hid_netbsd.c b/src/hid_netbsd.c index d5b9fad..df85282 100644 --- a/src/hid_netbsd.c +++ b/src/hid_netbsd.c @@ -127,14 +127,14 @@ fido_hid_manifest(fido_dev_info_t *devlist, size_t ilen, size_t *olen) char path[64]; size_t i; + if (devlist == NULL || olen == NULL) + return (FIDO_ERR_INVALID_ARGUMENT); + *olen = 0; if (ilen == 0) return (FIDO_OK); /* nothing to do */ - if (devlist == NULL || olen == NULL) - return (FIDO_ERR_INVALID_ARGUMENT); - for (i = *olen = 0; i < MAX_UHID && *olen < ilen; i++) { snprintf(path, sizeof(path), "/dev/uhid%zu", i); if (copy_info(&devlist[*olen], path) == 0) { |