summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bio/bss_sock.c')
-rw-r--r--src/lib/libcrypto/bio/bss_sock.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/bio/bss_sock.c b/src/lib/libcrypto/bio/bss_sock.c
index 3df31938c1..07e52ec400 100644
--- a/src/lib/libcrypto/bio/bss_sock.c
+++ b/src/lib/libcrypto/bio/bss_sock.c
@@ -138,8 +138,8 @@ static int sock_read(BIO *b, char *out, int outl)
138 138
139 if (out != NULL) 139 if (out != NULL)
140 { 140 {
141 clear_socket_error(); 141 errno = 0;
142 ret=readsocket(b->num,out,outl); 142 ret=read(b->num,out,outl);
143 BIO_clear_retry_flags(b); 143 BIO_clear_retry_flags(b);
144 if (ret <= 0) 144 if (ret <= 0)
145 { 145 {
@@ -154,8 +154,8 @@ static int sock_write(BIO *b, const char *in, int inl)
154 { 154 {
155 int ret; 155 int ret;
156 156
157 clear_socket_error(); 157 errno = 0;
158 ret=writesocket(b->num,in,inl); 158 ret=write(b->num,in,inl);
159 BIO_clear_retry_flags(b); 159 BIO_clear_retry_flags(b);
160 if (ret <= 0) 160 if (ret <= 0)
161 { 161 {
@@ -220,7 +220,7 @@ int BIO_sock_should_retry(int i)
220 220
221 if ((i == 0) || (i == -1)) 221 if ((i == 0) || (i == -1))
222 { 222 {
223 err=get_last_socket_error(); 223 err=errno;
224 224
225#if defined(OPENSSL_SYS_WINDOWS) && 0 /* more microsoft stupidity? perhaps not? Ben 4/1/99 */ 225#if defined(OPENSSL_SYS_WINDOWS) && 0 /* more microsoft stupidity? perhaps not? Ben 4/1/99 */
226 if ((i == -1) && (err == 0)) 226 if ((i == -1) && (err == 0))