From b565e72dfbbb526bb6aaa0ffd1864d3534b38c8c Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 5 May 2020 11:52:13 +0200 Subject: [PATCH] BUG/MINOR: wurfl: Fix HTX message prefetch 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wurfl.c b/src/wurfl.c index 47968e212..b8133bad8 100644 --- a/src/wurfl.c +++ b/src/wurfl.c @@ -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; }