diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-02-09 19:01:15 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-02-09 19:01:15 +0000 |
commit | 92f7606f29b70451b2f7c5a033459b895055856c (patch) | |
tree | d2eba38aa3d6adce8217c99527d53e518b4a4431 /lib | |
parent | fd52530b50baf8e1d21cb081a3a4bb9f25feeec1 (diff) |
smtp: Fixed an issue when processing EHLO failure responses (Part 3)
Follow up fix to commit 62bd21746443 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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/smtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smtp.c b/lib/smtp.c index fd8d71226..dd08575be 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -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; |