diff options
| author | Theo Buehler <tb@openbsd.org> | 2026-07-20 10:42:38 +0200 |
|---|---|---|
| committer | Theo Buehler <tb@openbsd.org> | 2026-07-20 10:42:38 +0200 |
| commit | 7464eb4e649a1f3362bbe5127d103becdda5d399 (patch) | |
| tree | 673556869a81e0c640878cde885d8134aa1be3fa | |
| parent | 05ac57ccfd6a8bba5d3c33387d30fd7bc4d3df81 (diff) | |
| parent | 3239ebf0dc848c37bd299808146d5ed6b0f5e90d (diff) | |
| download | portable-7464eb4e649a1f3362bbe5127d103becdda5d399.tar.gz portable-7464eb4e649a1f3362bbe5127d103becdda5d399.tar.bz2 portable-7464eb4e649a1f3362bbe5127d103becdda5d399.zip | |
Land #1324 - set errno for unmapped codes in wsa_{,select}_errno
| -rw-r--r-- | apps/openssl/compat/poll_win.c | 3 | ||||
| -rw-r--r-- | crypto/compat/posix_win.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/apps/openssl/compat/poll_win.c b/apps/openssl/compat/poll_win.c index 8e28349..1e3021a 100644 --- a/apps/openssl/compat/poll_win.c +++ b/apps/openssl/compat/poll_win.c | |||
| @@ -152,6 +152,9 @@ wsa_select_errno(int err) | |||
| 152 | case WSAENETDOWN: | 152 | case WSAENETDOWN: |
| 153 | errno = ENOMEM; | 153 | errno = ENOMEM; |
| 154 | break; | 154 | break; |
| 155 | default: | ||
| 156 | errno = EIO; | ||
| 157 | break; | ||
| 155 | } | 158 | } |
| 156 | return -1; | 159 | return -1; |
| 157 | } | 160 | } |
diff --git a/crypto/compat/posix_win.c b/crypto/compat/posix_win.c index bc0fa36..4e98643 100644 --- a/crypto/compat/posix_win.c +++ b/crypto/compat/posix_win.c | |||
| @@ -178,6 +178,9 @@ wsa_errno(int err) | |||
| 178 | case WSAETIMEDOUT: | 178 | case WSAETIMEDOUT: |
| 179 | errno = EPIPE; | 179 | errno = EPIPE; |
| 180 | break; | 180 | break; |
| 181 | default: | ||
| 182 | errno = EIO; | ||
| 183 | break; | ||
| 181 | } | 184 | } |
| 182 | return -1; | 185 | return -1; |
| 183 | } | 186 | } |
