mirror of
https://github.com/curl/curl.git
synced 2026-08-24 10:43:32 +03:00
smtp: Fixed an issue when processing EHLO failure responses (Part 3)
Follow up fix to commit 62bd217464 to cater for servers that don't
respond with a 250 in their EHLO responses. Additionally updated the
SMTP tests to respond with a 250 response code as per RFC5321.
This commit is contained in:
parent
fd52530b50
commit
92f7606f29
4 changed files with 4 additions and 4 deletions
|
|
@ -224,7 +224,7 @@ static int smtp_endofresp(struct pingpong *pp, int *resp)
|
|||
*resp = curlx_sltosi(strtol(line, NULL, 10));
|
||||
|
||||
/* Are we processing EHLO command data? */
|
||||
if(smtpc->state == SMTP_EHLO && (!result || (result && *resp == 250))) {
|
||||
if(smtpc->state == SMTP_EHLO && (!result || (result && *resp/100 == 2))) {
|
||||
line += 4;
|
||||
len -= 4;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue