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.
This commit is contained in:
David Carlier 2019-07-10 21:19:24 +01:00 committed by Willy Tarreau
parent bc89ad8d94
commit 7df4185f3c

View File

@ -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.area = tmp->area;
smp->data.u.str.data = tmp->data; smp->data.u.str.data = tmp->data;
smp->data.type = SMP_T_STR;
return 1; return 1;
} }