]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: da: Fix HTX message prefetch
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2020 09:49:57 +0000 (11:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2020 09:50:14 +0000 (11:50 +0200)
An additional argument has been added to smp_prefetch_htx() function in the
commit 778f5ed47 ("MEDIUM: checks/http-fetch: Support htx prefetch from a check
for HTTP samples"). But forgot to update call in da module.

No need to backport.

src/da.c

index 0984c3049482c1c9533ba3ae2587e1baed0c2b4c..0e4d5a7636086a4c98240d50b8b8484b8b9928a3 100644 (file)
--- a/src/da.c
+++ b/src/da.c
@@ -301,7 +301,7 @@ static int da_haproxy_fetch(const struct arg *args, struct sample *smp, const ch
        }
 
        chn = (smp->strm ? &smp->strm->req : NULL);
-       htx = smp_prefetch_htx(smp, chn, 1);
+       htx = smp_prefetch_htx(smp, chn, NULL, 1);
        if (!htx)
                return 0;