Skip to content
Snippets Groups Projects
Commit f0bfc0fb authored by Steve Holme's avatar Steve Holme
Browse files

smtp: Fixed an issue with missing capabilities after the AUTH line

Follow up to commit 40f9bb78 to fix missing capabilities after an
AUTH line.
parent 7f266f1c
No related branches found
No related tags found
No related merge requests found
......@@ -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--;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment