]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: http_act: Restore init of log-format list
authorMaciej Zdeb <maciej@zdeb.pl>
Mon, 23 Nov 2020 16:03:09 +0000 (16:03 +0000)
committerWilly Tarreau <w@1wt.eu>
Tue, 24 Nov 2020 09:33:46 +0000 (10:33 +0100)
Restore init of log-format list in parse_http_del_header which was
accidently deleted by commit ebdd4c55da4360bde7878604ea528c2031a26541
(implementation of different header matching methods for
http-request/response del-header).

This is related to GitHub issue #909

src/http_act.c

index 13a5c370da861c78f21037186808ee16325ab45a..85a534e8d2401d5d59ea37fcc61ad2018b6f2ab8 100644 (file)
@@ -1506,6 +1506,7 @@ static enum act_parse_ret parse_http_del_header(const char **args, int *orig_arg
        rule->arg.http.str.len = strlen(rule->arg.http.str.ptr);
        px->conf.args.ctx = (rule->from == ACT_F_HTTP_REQ ? ARGC_HRQ : ARGC_HRS);
 
+       LIST_INIT(&rule->arg.http.fmt);
        if (strcmp(args[cur_arg+1], "-m") == 0) {
                cur_arg++;
                if (!*args[cur_arg+1]) {