summaryrefslogtreecommitdiffstats
path: root/lib/libssl/s23_lib.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2014-04-13 21:11:19 +0000
committermpi <mpi@openbsd.org>2014-04-13 21:11:19 +0000
commit2fa0eb2764f33e59b5fd5c912036aeae676b2591 (patch)
tree75d49a5f5c352421e2f17db5737fc9c89a41c7b7 /lib/libssl/s23_lib.c
parentremove more cases of MS_STATIC, MS_CALLBACK, and MS_FAR. Did you (diff)
downloadwireguard-openbsd-2fa0eb2764f33e59b5fd5c912036aeae676b2591.tar.xz
wireguard-openbsd-2fa0eb2764f33e59b5fd5c912036aeae676b2591.zip
Do not include "e_os.h" anymore. Simply pull in the necessary headers.
ok miod@, deraadt@
Diffstat (limited to 'lib/libssl/s23_lib.c')
-rw-r--r--lib/libssl/s23_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/s23_lib.c b/lib/libssl/s23_lib.c
index 3bf728318a4..a6285b767fb 100644
--- a/lib/libssl/s23_lib.c
+++ b/lib/libssl/s23_lib.c
@@ -121,7 +121,7 @@ int ssl23_read(SSL *s, void *buf, int len)
{
int n;
- clear_sys_error();
+ errno = 0;
if (SSL_in_init(s) && (!s->in_handshake))
{
n=s->handshake_func(s);
@@ -144,7 +144,7 @@ int ssl23_peek(SSL *s, void *buf, int len)
{
int n;
- clear_sys_error();
+ errno = 0;
if (SSL_in_init(s) && (!s->in_handshake))
{
n=s->handshake_func(s);
@@ -167,7 +167,7 @@ int ssl23_write(SSL *s, const void *buf, int len)
{
int n;
- clear_sys_error();
+ errno = 0;
if (SSL_in_init(s) && (!s->in_handshake))
{
n=s->handshake_func(s);