summaryrefslogtreecommitdiff
path: root/lib/sendf.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-04-10 13:44:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-04-10 13:44:42 +0000
commite8109b09b117749dc9b7e2ab7d51bd100e254d7e (patch)
tree4db0ba1cf29ce633dae02851065de8a4f594064a /lib/sendf.c
parent536ea60d73cd407b076c36bb0dbf72c37a586b0e (diff)
downloadcurl-e8109b09b117749dc9b7e2ab7d51bd100e254d7e.tar.gz
error code cleanup, use the new SEND/RECV errors
Diffstat (limited to 'lib/sendf.c')
-rw-r--r--lib/sendf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sendf.c b/lib/sendf.c
index be030142d..721db36a8 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -234,7 +234,7 @@ CURLcode Curl_write(struct connectdata *conn, int sockfd,
}
/* a true error */
failf(conn->data, "SSL_write() return error %d\n", err);
- return CURLE_WRITE_ERROR;
+ return CURLE_SEND_ERROR;
}
bytes_written = rc;
}
@@ -266,7 +266,7 @@ CURLcode Curl_write(struct connectdata *conn, int sockfd,
#endif
*written = bytes_written;
- return (-1 != bytes_written)?CURLE_OK:CURLE_WRITE_ERROR;
+ return (-1 != bytes_written)?CURLE_OK:CURLE_SEND_ERROR;
}
/* client_write() sends data to the write callback(s)
@@ -349,7 +349,7 @@ int Curl_read(struct connectdata *conn,
break;
default:
failf(conn->data, "SSL read error: %d", err);
- return CURLE_READ_ERROR;
+ return CURLE_RECV_ERROR;
}
} while(loop);
if(loop && SSL_pending(conn->ssl.handle))