]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: da: cast the chunk to string.
authorDavid Carlier <dcarlier@afilias.info>
Wed, 10 Jul 2019 20:19:24 +0000 (21:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jul 2019 08:20:09 +0000 (10:20 +0200)
in fetch mode, the output was incorrect, setting the type to string
explicitally.

This should be backported to all stable versions.

src/da.c

index f5e01352853956caaf90c78c144e009674ec1d73..5549112ca2c903be239fe999d91f046d6102214f 100644 (file)
--- 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;
 }