]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: cfgparse: check section maximum number of arguments
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 28 Apr 2015 14:55:23 +0000 (16:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 May 2015 16:43:03 +0000 (18:43 +0200)
commit6e62fb64055a32ef9e0c167c1ddb41f7facd5897
tree614f2d680c7bed5271c48c9c9d93c0ed8f3e75bc
parent5109719e7720594ef5544483f1f5ef1ba4ca9e87
MEDIUM: cfgparse: check section maximum number of arguments

This patch checks the number of arguments of the keywords:
'global', 'defaults', 'listen', 'backend', 'frontend', 'peers' and
'userlist'

The 'global' section does not take any arguments.

Proxy sections does not support bind address as argument anymore.  Those
sections supports only an <id> argument.

The 'defaults' section didn't had any check on its arguments. It takes
an optional <name> argument.

'peers' section takes a <peersect> argument.

'userlist' section takes a <listname> argument.
doc/configuration.txt
src/cfgparse.c