*/
if((ptr + pp->cache_size) > (buf + data->set.buffer_size + 1)) {
failf(data, "cached response data too big to handle");
- return CURLE_RECV_ERROR;
+ return CURLE_WEIRD_SERVER_REPLY;
}
memcpy(ptr, pp->cache, pp->cache_size);
gotbytes = (ssize_t)pp->cache_size;
if(pop3code != '+') {
state(data, POP3_STOP);
- return CURLE_RECV_ERROR;
+ return CURLE_WEIRD_SERVER_REPLY;
}
/* This 'OK' line ends with a CR LF pair which is the two first bytes of the
if((smtp->rcpt && smtpcode/100 != 2 && smtpcode != 553 && smtpcode != 1) ||
(!smtp->rcpt && smtpcode/100 != 2 && smtpcode != 1)) {
failf(data, "Command failed: %d", smtpcode);
- result = CURLE_RECV_ERROR;
+ result = CURLE_WEIRD_SERVER_REPLY;
}
else {
/* Temporarily add the LF character back and send as body to the client */
(void)instate; /* no use for this yet */
if(smtpcode != 250)
- result = CURLE_RECV_ERROR;
+ result = CURLE_WEIRD_SERVER_REPLY;
/* End of DONE phase */
state(data, SMTP_STOP);
# Verify data after the test has been "shot"
<verify>
<errorcode>
-56
+8
</errorcode>
<protocol>
CAPA\r
# Verify data after the test has been "shot"
<verify>
<errorcode>
-56
+8
</errorcode>
<protocol>
CAPA\r
#
# Verify data after the test has been "shot"
<verify>
-# 56 - CURLE_RECV_ERROR
+# 8 - CURLE_WEIRD_SERVER_REPLY
<errorcode>
-56
+8
</errorcode>
<protocol>
EHLO %TESTNUMBER\r
#
# Verify data after the test has been "shot"
<verify>
-# 56 - CURLE_RECV_ERROR
+# 8 - CURLE_WEIRD_SERVER_REPLY
<errorcode>
-56
+8
</errorcode>
<protocol>
EHLO %TESTNUMBER\r
#
# Verify data after the test has been "shot"
<verify>
-# 56 - CURLE_RECV_ERROR
+# 8 - CURLE_WEIRD_SERVER_REPLY
<errorcode>
-56
+8
</errorcode>
<protocol>
EHLO %TESTNUMBER\r
#
# Verify data after the test has been "shot"
<verify>
-# 56 - CURLE_RECV_ERROR
+# 8 - CURLE_WEIRD_SERVER_REPLY
<errorcode>
-56
+8
</errorcode>
<protocol>
EHLO %TESTNUMBER\r