mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-15 03:12:17 +02:00
[BUG] fix parser crash on unconditional tcp content rules
Since 1.3.17, a config containing one of the following lines would
crash the parser :
tcp content reject
tcp content accept
This is because a check is performed on the condition which is not
specified. The obvious fix consists in checkinf for a condition
first.
This commit is contained in:
@@ -521,7 +521,7 @@ static int tcp_parse_tcp_req(char **args, int section_type, struct proxy *curpx,
|
||||
|
||||
// FIXME: how to set this ?
|
||||
// cond->line = linenum;
|
||||
if (cond->requires & (ACL_USE_RTR_ANY | ACL_USE_L7_ANY)) {
|
||||
if (cond && cond->requires & (ACL_USE_RTR_ANY | ACL_USE_L7_ANY)) {
|
||||
struct acl *acl;
|
||||
const char *name;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user