diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-04-10 13:44:42 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-04-10 13:44:42 +0000 |
commit | e8109b09b117749dc9b7e2ab7d51bd100e254d7e (patch) | |
tree | 4db0ba1cf29ce633dae02851065de8a4f594064a /lib/url.c | |
parent | 536ea60d73cd407b076c36bb0dbf72c37a586b0e (diff) |
error code cleanup, use the new SEND/RECV errors
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |