aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2026-09-07 17:49:09 +0200
committerTheo Buehler <tb@openbsd.org>2026-09-07 17:49:09 +0200
commit7540c7413b2a421c1bbb8e0b98456237d3896b89 (patch)
tree77a3d769879e628843360943fadce412d570f2ee
parent737f1f394ad27bbd3ed2255ce895a47d58c6d2e8 (diff)
parent018f8275bd319a1071480b5eae3f65f65590084d (diff)
downloadportable-7540c7413b2a421c1bbb8e0b98456237d3896b89.tar.gz
portable-7540c7413b2a421c1bbb8e0b98456237d3896b89.tar.bz2
portable-7540c7413b2a421c1bbb8e0b98456237d3896b89.zip
Land #1377 - report failed connect as POLLERR in win32 poll shim
-rw-r--r--apps/openssl/compat/poll_win.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/openssl/compat/poll_win.c b/apps/openssl/compat/poll_win.c
index 1e3021a..70a7d06 100644
--- a/apps/openssl/compat/poll_win.c
+++ b/apps/openssl/compat/poll_win.c
@@ -73,6 +73,8 @@ compute_select_revents(int fd, short events,
73 rc |= POLLHUP; 73 rc |= POLLHUP;
74 else if (conn_has_oob_data(fd)) 74 else if (conn_has_oob_data(fd))
75 rc |= POLLRDBAND | POLLPRI; 75 rc |= POLLRDBAND | POLLPRI;
76 else
77 rc |= POLLERR;
76 } 78 }
77 79
78 return rc; 80 return rc;