mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-02-04 08:51:26 +01:00
BUG/MINOR: sample: Fix 'fix_tag_value' sample when waiting for more data
The test on the return value of fix_tag_value() function was inverted. To wait for more data, the return value must be a valid empty string and not IST_NULL. This patch must be backported to 2.4.
This commit is contained in:
parent
597909f4e6
commit
a5aa082742
@ -3126,7 +3126,7 @@ static int sample_conv_fix_tag_value(const struct arg *arg_p, struct sample *smp
|
||||
value = fix_tag_value(ist2(smp->data.u.str.area, smp->data.u.str.data),
|
||||
arg_p[0].data.sint);
|
||||
if (!istlen(value)) {
|
||||
if (!isttest(value)) {
|
||||
if (isttest(value)) {
|
||||
/* value != IST_NULL, need more data */
|
||||
smp->flags |= SMP_F_MAY_CHANGE;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user