mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
BUG/MINOR: http-act: Fix parsing of the expression argument for pause action
When the "pause" action is parsed, if an expression is used instead of a static value, the position of the current argument after the expression evaluation is incremented while it should not. The sample_parse_expr() function already take care of it. However, it should still be incremented when an time value was parsed. This patch must be backported to 3.2.
This commit is contained in:
parent
3cc5991c9b
commit
5da4da0bb6
@ -1822,8 +1822,12 @@ static enum act_parse_ret parse_http_pause(const char **args, int *orig_arg, str
|
|||||||
memprintf(err, "null value is not valid for a 'pause' rule");
|
memprintf(err, "null value is not valid for a 'pause' rule");
|
||||||
return ACT_RET_PRS_ERR;
|
return ACT_RET_PRS_ERR;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
/* a time volue was successfully parsed */
|
||||||
|
cur_arg++;
|
||||||
|
}
|
||||||
|
|
||||||
*orig_arg = cur_arg + 1;
|
*orig_arg = cur_arg;
|
||||||
return ACT_RET_PRS_OK;
|
return ACT_RET_PRS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user