]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: wurfl: Fix HTX message prefetch
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2020 09:52:13 +0000 (11:52 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2020 09:52:13 +0000 (11:52 +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 wurfl module.

No need to backport.

src/wurfl.c

index 47968e2120b94ffa658cfef256c9a36df639bc49..b8133bad8605411e4e4cb56074fe80826322fff9 100644 (file)
@@ -436,7 +436,7 @@ static int ha_wurfl_get_all(const struct arg *args, struct sample *smp, const ch
        ha_wurfl_log("WURFL: starting ha_wurfl_get_all\n");
 
        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;
 
@@ -522,7 +522,7 @@ static int ha_wurfl_get(const struct arg *args, struct sample *smp, const char *
        ha_wurfl_log("WURFL: starting ha_wurfl_get\n");
 
        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;
 
@@ -739,7 +739,7 @@ static const char *ha_wurfl_retrieve_header(const char *header_name, const void
        // We could skip this chek since ha_wurfl_retrieve_header is called from inside
        // ha_wurfl_get()/ha_wurfl_get_all() that already perform the same check
        // We choose to keep it in case ha_wurfl_retrieve_header will be called directly
-       htx = smp_prefetch_htx(smp, chn, 1);
+       htx = smp_prefetch_htx(smp, chn, NULL, 1);
        if (!htx) {
                return NULL;
        }