From f11b1fb87fd94896aa7dbf69a57b023e4ceb952c Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 5 May 2020 11:53:43 +0200 Subject: [PATCH] BUG/MINOR: 51d: 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 51d module. No need to backport. --- src/51d.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/51d.c b/src/51d.c index 42d192967..78ee7483b 100644 --- a/src/51d.c +++ b/src/51d.c @@ -238,7 +238,7 @@ static void _51d_set_headers(struct sample *smp, fiftyoneDegreesWorkset *ws) // No need to null check as this has already been carried out in the // calling method - htx = smp_prefetch_htx(smp, chn, 1); + htx = smp_prefetch_htx(smp, chn, NULL, 1); for (i = 0; i < global_51degrees.header_count; i++) { name.ptr = (global_51degrees.header_names + i)->area; @@ -276,7 +276,7 @@ static void _51d_set_device_offsets(struct sample *smp, fiftyoneDegreesDeviceOff // No need to null check as this has already been carried out in the // calling method - htx = smp_prefetch_htx(smp, chn, 1); + htx = smp_prefetch_htx(smp, chn, NULL, 1); for (i = 0; i < global_51degrees.header_count; i++) { name.ptr = (global_51degrees.header_names + i)->area; @@ -424,7 +424,7 @@ static int _51d_fetch(const struct arg *args, struct sample *smp, const char *kw struct htx *htx; 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;