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>
(cherry picked from commit ea764c5)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 21c34e6)
Signed-off-by: Willy Tarreau <w@1wt.eu>
  • Loading branch information
David Carlier authored and wtarreau committed Oct 22, 2019
1 parent 722d001 commit 473a050
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 @@ -220,6 +220,7 @@ static int da_haproxy(const struct arg *args, struct sample *smp, da_deviceinfo_

smp->data.u.str.str = tmp->str;
smp->data.u.str.len = tmp->len;
smp->data.type = SMP_T_STR;

return 1;
}
Expand Down

0 comments on commit 473a050

Please sign in to comment.