summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/crypto/bio/bss_fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libssl/src/crypto/bio/bss_fd.c')
-rw-r--r--lib/libssl/src/crypto/bio/bss_fd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/src/crypto/bio/bss_fd.c b/lib/libssl/src/crypto/bio/bss_fd.c
index d1bf85aae17..ab18a56310d 100644
--- a/lib/libssl/src/crypto/bio/bss_fd.c
+++ b/lib/libssl/src/crypto/bio/bss_fd.c
@@ -147,7 +147,7 @@ static int fd_read(BIO *b, char *out,int outl)
if (out != NULL)
{
- clear_sys_error();
+ errno = 0;
ret=UP_read(b->num,out,outl);
BIO_clear_retry_flags(b);
if (ret <= 0)
@@ -162,7 +162,7 @@ static int fd_read(BIO *b, char *out,int outl)
static int fd_write(BIO *b, const char *in, int inl)
{
int ret;
- clear_sys_error();
+ errno = 0;
ret=UP_write(b->num,in,inl);
BIO_clear_retry_flags(b);
if (ret <= 0)
@@ -257,7 +257,7 @@ int BIO_fd_should_retry(int i)
if ((i == 0) || (i == -1))
{
- err=get_last_sys_error();
+ err=errno;
#if defined(OPENSSL_SYS_WINDOWS) && 0 /* more microsoft stupidity? perhaps not? Ben 4/1/99 */
if ((i == -1) && (err == 0))