diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-02-09 14:26:22 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-02-09 14:26:22 +0000 |
commit | f0bfc0fbd7b06b1a54d3379b6da4f708fd0837a1 (patch) | |
tree | 5030882598a5835441128c63edd6df8cff8da246 /lib | |
parent | 7f266f1c99a9dfbc69c54911910359640bb297df (diff) |
smtp: Fixed an issue with missing capabilities after the AUTH line
Follow up to commit 40f9bb787f05 to fix missing capabilities after an
AUTH line.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/smtp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/smtp.c b/lib/smtp.c index c967bbd68..fac03c94a 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -210,7 +210,7 @@ static const struct Curl_handler Curl_handler_smtps_proxy = { static int smtp_endofresp(struct pingpong *pp, int *resp) { char *line = pp->linestart_resp; - size_t len = pp->nread_resp; + size_t len = strlen(pp->linestart_resp); struct connectdata *conn = pp->conn; struct smtp_conn *smtpc = &conn->proto.smtpc; size_t wordlen; @@ -242,6 +242,10 @@ static int smtp_endofresp(struct pingpong *pp, int *resp) while(len && (*line == ' ' || *line == '\t' || *line == '\r' || *line == '\n')) { + + if(*line == '\n') + return FALSE; + line++; len--; } |