BUG/MINOR: config: stick-table is not supported in defaults section
authorWilly Tarreau <w@1wt.eu>
Fri, 27 Jul 2018 08:26:22 +0000 (10:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 27 Jul 2018 08:26:22 +0000 (10:26 +0200)
commitc786768dbaa178a2b9ad82eebf004eb3e541201d
tree2188bae4177eec1301e44a5bff4f66572972a474
parenta2b5181e7a29ac50645b89909c73ca031c7b1d8b
BUG/MINOR: config: stick-table is not supported in defaults section

Thierry discovered that the following config crashes haproxy while
parsing the config (it's probably the smallest crasher) :

   defaults
       stick-table type ip size 1M

And indeed it does because it looks for the current proxy's name which it
does not have as it's the default one. This affects all versions since 1.6.

This fix must be backported to all versions back to 1.6.
src/cfgparse.c