diff options
Diffstat (limited to 'src/lib/libcrypto/bio/bss_fd.c')
-rw-r--r-- | src/lib/libcrypto/bio/bss_fd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bio/bss_fd.c b/src/lib/libcrypto/bio/bss_fd.c index d1bf85aae1..ab18a56310 100644 --- a/src/lib/libcrypto/bio/bss_fd.c +++ b/src/lib/libcrypto/bio/bss_fd.c | |||
@@ -147,7 +147,7 @@ static int fd_read(BIO *b, char *out,int outl) | |||
147 | 147 | ||
148 | if (out != NULL) | 148 | if (out != NULL) |
149 | { | 149 | { |
150 | clear_sys_error(); | 150 | errno = 0; |
151 | ret=UP_read(b->num,out,outl); | 151 | ret=UP_read(b->num,out,outl); |
152 | BIO_clear_retry_flags(b); | 152 | BIO_clear_retry_flags(b); |
153 | if (ret <= 0) | 153 | if (ret <= 0) |
@@ -162,7 +162,7 @@ static int fd_read(BIO *b, char *out,int outl) | |||
162 | static int fd_write(BIO *b, const char *in, int inl) | 162 | static int fd_write(BIO *b, const char *in, int inl) |
163 | { | 163 | { |
164 | int ret; | 164 | int ret; |
165 | clear_sys_error(); | 165 | errno = 0; |
166 | ret=UP_write(b->num,in,inl); | 166 | ret=UP_write(b->num,in,inl); |
167 | BIO_clear_retry_flags(b); | 167 | BIO_clear_retry_flags(b); |
168 | if (ret <= 0) | 168 | if (ret <= 0) |
@@ -257,7 +257,7 @@ int BIO_fd_should_retry(int i) | |||
257 | 257 | ||
258 | if ((i == 0) || (i == -1)) | 258 | if ((i == 0) || (i == -1)) |
259 | { | 259 | { |
260 | err=get_last_sys_error(); | 260 | err=errno; |
261 | 261 | ||
262 | #if defined(OPENSSL_SYS_WINDOWS) && 0 /* more microsoft stupidity? perhaps not? Ben 4/1/99 */ | 262 | #if defined(OPENSSL_SYS_WINDOWS) && 0 /* more microsoft stupidity? perhaps not? Ben 4/1/99 */ |
263 | if ((i == -1) && (err == 0)) | 263 | if ((i == -1) && (err == 0)) |