diff options
| author | 2020-08-23 10:31:27 +0000 | |
|---|---|---|
| committer | 2020-08-23 10:31:27 +0000 | |
| commit | 774a2b88723926f241a358c2f01dedfb652bd267 (patch) | |
| tree | ce0f4e077a52cad616e58131095388eb0db8eae5 | |
| parent | Attempt to support IODA2 bridges such as the one found on POWER8 chips. (diff) | |
| download | wireguard-openbsd-774a2b88723926f241a358c2f01dedfb652bd267.tar.xz wireguard-openbsd-774a2b88723926f241a358c2f01dedfb652bd267.zip | |
check errno against EINTR; not return value from poll()
spotted by Pedro Martelletto
| -rw-r--r-- | lib/libfido2/src/hid_openbsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfido2/src/hid_openbsd.c b/lib/libfido2/src/hid_openbsd.c index 7ba0fc53cda..58b8c3e9475 100644 --- a/lib/libfido2/src/hid_openbsd.c +++ b/lib/libfido2/src/hid_openbsd.c @@ -202,7 +202,7 @@ waitfd(int fd, int ms) return 0; else if (r == 0) break; - else if (r != EINTR) { + else if (errno != EINTR) { fido_log_debug("%s: poll: %s", __func__, strerror(errno)); return -1; |
