Skip to content

Commit

Permalink
lib-smtp: syntax: Fix smtp_ehlo_line_parse() to also record the last …
Browse files Browse the repository at this point in the history
…parameter.
  • Loading branch information
stephanbosch authored and villesavolainen committed Feb 12, 2019
1 parent 54e41f5 commit 11de7fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-smtp/smtp-syntax.c
Expand Up @@ -271,6 +271,8 @@ static int smtp_parse_ehlo_line(struct smtp_parser *parser,
}

if (params_r != NULL) {
param = p_strdup_until(parser->pool, pbegin, parser->cur);
array_append(&params, &param, 1);
array_append_zero(&params);
*params_r = array_idx(&params, 0);
}
Expand Down

0 comments on commit 11de7fc

Please sign in to comment.