From: Christopher Faulet Date: Fri, 19 Apr 2019 13:26:01 +0000 (+0200) Subject: BUG/MINOR: da: Get the request channel to call CHECK_HTTP_MESSAGE_FIRST() X-Git-Tag: v2.0-dev3~207 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f48552f2c10a2f956d7bd1eb02a6d694d2b5c5d3;p=thirdparty%2Fhaproxy.git BUG/MINOR: da: Get the request channel to call CHECK_HTTP_MESSAGE_FIRST() Since the commit 89dc49935 ("BUG/MAJOR: http_fetch: Get the channel depending on the keyword used"), the right channel must be passed as argument when the macro CHECK_HTTP_MESSAGE_FIRST is called. This patch must be backported to 1.9. --- diff --git a/src/da.c b/src/da.c index 0a49d52985..4559c6ee5b 100644 --- a/src/da.c +++ b/src/da.c @@ -298,7 +298,7 @@ static int da_haproxy_fetch(const struct arg *args, struct sample *smp, const ch return 1; } - CHECK_HTTP_MESSAGE_FIRST(); + CHECK_HTTP_MESSAGE_FIRST((smp->strm ? &smp->strm->req : NULL)); smp->data.type = SMP_T_STR; /**