Skip to content

Commit

Permalink
BUG/MEDIUM: da: cast the chunk to string.
Browse files Browse the repository at this point in the history
in fetch mode, the output was incorrect, setting the type to string
explicitally.

This should be backported to all stable versions.

(cherry picked from commit 7df4185f3c0ca87fb1fe47522af452d98e0e36e7)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 9d6e733)
Signed-off-by: Willy Tarreau <w@1wt.eu>
  • Loading branch information
David Carlier authored and wtarreau committed Jul 11, 2019
1 parent d03531d commit ea764c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/da.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,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;
}
Expand Down

0 comments on commit ea764c5

Please sign in to comment.