mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:33:31 +03:00
pop3/smtp: return *WEIRD_SERVER_REPLY when not understood
This leaves the CURLE_RECV_ERROR error code for explicit failure to receive network data and allows users to better separate the problems. Ref #8356 Reported-by: Rianov Viacheslav Closes #8506
This commit is contained in:
parent
3a4182d468
commit
5a9d7c4e68
9 changed files with 14 additions and 14 deletions
|
|
@ -924,7 +924,7 @@ static CURLcode pop3_state_command_resp(struct Curl_easy *data,
|
|||
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue