]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: syntax: Fix smtp_ehlo_line_parse() to also record the last parameter.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Mon, 3 Dec 2018 17:45:17 +0000 (18:45 +0100)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 12 Feb 2019 13:42:04 +0000 (15:42 +0200)
src/lib-smtp/smtp-syntax.c

index 2577fb304965d23c982bce250f7ddf18be95d488..b02997a09a79f9f26d98af3198e19bc9fbfe4e6d 100644 (file)
@@ -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);
        }