]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: da: Get the request channel to call CHECK_HTTP_MESSAGE_FIRST()
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Apr 2019 13:26:01 +0000 (15:26 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Apr 2019 13:53:23 +0000 (15:53 +0200)
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.

src/da.c

index 0a49d529857489a339f529eca388ecf86c1b97e5..4559c6ee5b26d5b5744fd67c9f8a25d6735f4144 100644 (file)
--- 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;
 
        /**