From: David Carlier Date: Wed, 10 Jul 2019 20:19:24 +0000 (+0100) Subject: BUG/MEDIUM: da: cast the chunk to string. X-Git-Tag: v2.1-dev1~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7df4185f3c0ca87fb1fe47522af452d98e0e36e7;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: da: cast the chunk to string. in fetch mode, the output was incorrect, setting the type to string explicitally. This should be backported to all stable versions. --- diff --git a/src/da.c b/src/da.c index f5e0135285..5549112ca2 100644 --- a/src/da.c +++ b/src/da.c @@ -254,6 +254,7 @@ static int da_haproxy(const struct arg *args, struct sample *smp, da_deviceinfo_ smp->data.u.str.area = tmp->area; smp->data.u.str.data = tmp->data; + smp->data.type = SMP_T_STR; return 1; }