Follow up to commit
40f9bb787f05 to fix missing capabilities after an
AUTH line.
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;
while(len &&
(*line == ' ' || *line == '\t' ||
*line == '\r' || *line == '\n')) {
+
+ if(*line == '\n')
+ return FALSE;
+
line++;
len--;
}