]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: 51d: Get the request channel to call CHECK_HTTP_MESSAGE_FIRST()
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Apr 2019 13:22:29 +0000 (15:22 +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/51d.c

index c87525d6f3146dfa0930d249e4b736a99eb64e16..a79b4d7640a16931902037cbb240e7c2153f67c2 100644 (file)
--- a/src/51d.c
+++ b/src/51d.c
@@ -412,7 +412,7 @@ static int _51d_fetch(const struct arg *args, struct sample *smp, const char *kw
         * Data type has to be reset to ensure the string output is processed
         * correctly.
         */
-       CHECK_HTTP_MESSAGE_FIRST();
+       CHECK_HTTP_MESSAGE_FIRST((smp->strm ? &smp->strm->req : NULL));
        smp->data.type = SMP_T_STR;
 
        /* Flags the sample to show it uses constant memory*/