aboutsummaryrefslogtreecommitdiff
path: root/lib/url.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/url.c
parent536ea60d73cd407b076c36bb0dbf72c37a586b0e (diff)
error code cleanup, use the new SEND/RECV errors
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index b7233c074..0859dead1 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -950,7 +950,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
break;
default:
/* unknown tag and its companion, just ignore: */
- return CURLE_READ_ERROR; /* correct this */
+ return CURLE_FAILED_INIT; /* correct this */
}
return CURLE_OK;
}
@@ -2363,7 +2363,7 @@ CURLcode Curl_do(struct connectdata **connp)
/* This was formerly done in transfer.c, but we better do it here */
- if((CURLE_WRITE_ERROR == result) && conn->bits.reuse) {
+ if((CURLE_SEND_ERROR == result) && conn->bits.reuse) {
/* This was a re-use of a connection and we got a write error in the
* DO-phase. Then we DISCONNECT this connection and have another attempt
* to CONNECT and then DO again! The retry cannot possibly find another