[BUG][MINOR] incorrect number of configuration files allowed

From: Cyril Bonté <cyril.bonte#free.fr>
Date: Thu, 10 Dec 2009 00:38:08 +0100


Hi,
I've noticed that haproxy (1.3/1.4 branches) accepts 1 more configuration file than allowed.

The max default is fixed to 10 (#define MAX_CFG_FILES 10) but we can specify 11 "-f" parameters. This parameters are then stored in a 10 elements array.

In haproxy.c, the test

        if (cfg_nbcfgfiles > MAX_CFG_FILES) {
should be :

        if (cfg_nbcfgfiles >= MAX_CFG_FILES) {

-- 
Cyril Bonté
Received on 2009/12/10 00:38

This archive was generated by hypermail 2.2.0 : 2009/12/10 00:45 CET